[PATCH 8/8] qemu: monitor: Improve field annotations in QEMU_CHECK_MONITOR

Peter Krempa via Devel posted 8 patches 8 months, 3 weeks ago
[PATCH 8/8] qemu: monitor: Improve field annotations in QEMU_CHECK_MONITOR
Posted by Peter Krempa via Devel 8 months, 3 weeks ago
From: Peter Krempa <pkrempa@redhat.com>

The macro checking monitor object state also logs information such as
the monitor object pointer and the number of the monitor FD.

Name the field 'monfd' instead of 'fd' as it's confusing when debugging
FD pasing via monitor.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---
 src/qemu/qemu_monitor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c
index 6249dc8299..fc215def13 100644
--- a/src/qemu/qemu_monitor.c
+++ b/src/qemu/qemu_monitor.c
@@ -80,7 +80,7 @@ VIR_LOG_INIT("qemu.qemu_monitor");
                            _("monitor must not be NULL")); \
             exit; \
         } \
-        VIR_DEBUG("mon:%p vm:%p fd:%d", mon, mon->vm, mon->fd); \
+        VIR_DEBUG("mon:%p vm:%p monfd:%d", mon, mon->vm, mon->fd); \
     } while (0)

 /* Check monitor and return NULL on error */
-- 
2.49.0