]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuBlockStorageSourceAttachRollback: Sanitize warning messages
authorPeter Krempa <pkrempa@redhat.com>
Fri, 1 Oct 2021 11:46:53 +0000 (13:46 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 Oct 2021 08:26:01 +0000 (10:26 +0200)
Mention the QMP command 'device_add' rather than 'qemuMonitorAddDevice'
and remove the weird formatting.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_block.c

index 393d3f44d7078c2df2fd121cf53ef19edcb0aae9..b6d6d95692eb0570ac4c17da89caebe64c3a3cac 100644 (file)
@@ -1817,15 +1817,15 @@ qemuBlockStorageSourceAttachRollback(qemuMonitor *mon,
 
     if (data->chardevAdded) {
         if (qemuMonitorDetachCharDev(mon, data->chardevAlias) < 0) {
-            VIR_WARN("Unable to remove chardev %s after failed " "qemuMonitorAddDevice",
+            VIR_WARN("Unable to remove chardev %s after failed 'device_add'",
                      data->chardevAlias);
         }
     }
 
     if (data->driveAdded) {
         if (qemuMonitorDriveDel(mon, data->driveAlias) < 0)
-            VIR_WARN("Unable to remove drive %s (%s) after failed "
-                     "qemuMonitorAddDevice", data->driveAlias, data->driveCmd);
+            VIR_WARN("Unable to remove drive %s (%s) after failed 'device_add'",
+                     data->driveAlias, data->driveCmd);
     }
 
     if (data->formatAttached)