]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: monitor: Improve field annotations in QEMU_CHECK_MONITOR
authorPeter Krempa <pkrempa@redhat.com>
Tue, 25 Mar 2025 16:53:54 +0000 (17:53 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 1 Apr 2025 14:18:30 +0000 (16:18 +0200)
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>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_monitor.c

index 6249dc8299783754d7d3b300b54093686b6ae7b8..fc215def13708e861416cc11b91787a84fdde2a7 100644 (file)
@@ -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 */