diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 2127cfb85c..eb91295f93 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -4325,13 +4325,8 @@ virQEMUCapsInitQMPMonitor(virQEMUCapsPtr qemuCaps, /* @mon is supposed to be locked by callee */ - if (qemuMonitorGetVersion(mon, - &major, &minor, µ, - &package) < 0) { - VIR_DEBUG("Failed to query monitor version %s", - virGetLastErrorMessage()); + if (qemuMonitorGetVersion(mon, &major, &minor, µ, &package) < 0) return -1; - } VIR_DEBUG("Got version %d.%d.%d (%s)", major, minor, micro, NULLSTR(package));