From 6ca5649625852abc3061353f8f833220f4a715bd Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Thu, 1 Nov 2012 18:20:56 +0100 Subject: [PATCH] qemu: Fix name comparison in qemuMonitorJSONBlockIoThrottleInfo() The string comparison logic was inverted and matched the first drive that does *not* have the name we search for. Signed-off-by: Stefan Hajnoczi (cherry picked from commit 23d47b33a2f8b524c32d556d6d55a7ccb0c5903a) --- src/qemu/qemu_monitor_json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c index 072736b31f..e9ed927caa 100644 --- a/src/qemu/qemu_monitor_json.c +++ b/src/qemu/qemu_monitor_json.c @@ -3518,7 +3518,7 @@ qemuMonitorJSONBlockIoThrottleInfo(virJSONValuePtr result, goto cleanup; } - if (STREQ(current_dev, device)) + if (STRNEQ(current_dev, device)) continue; found = 1; -- GitLab