From: Peter Krempa Date: Tue, 25 Mar 2025 16:53:54 +0000 (+0100) Subject: qemu: monitor: Improve field annotations in QEMU_CHECK_MONITOR X-Git-Tag: v11.3.0-rc1~91 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c2872d72c05aac1619ce25d54444b4cfad230b3;p=thirdparty%2Flibvirt.git qemu: monitor: Improve field annotations in QEMU_CHECK_MONITOR 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 Reviewed-by: Ján Tomko --- 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 */