提交 ee8b6245 编写于 作者: J John Ferlan

qemu_monitor: Resolve Coverity NESTING_INDENT_MISMATCH

The PROBE macro can expand to more than one line/statement - put curly
braces around the if statement to be safe
上级 91a60a56
......@@ -506,10 +506,11 @@ qemuMonitorIOWrite(qemuMonitorPtr mon)
mon->msg->txLength - mon->msg->txOffset,
done, errno);
if (mon->msg->txFD != -1)
if (mon->msg->txFD != -1) {
PROBE(QEMU_MONITOR_IO_SEND_FD,
"mon=%p fd=%d ret=%d errno=%d",
mon, mon->msg->txFD, done, errno);
}
if (done < 0) {
if (errno == EAGAIN)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册