]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuMigrationSrcIOFunc: Avoid unnecessary string construction
authorPeter Krempa <pkrempa@redhat.com>
Mon, 25 Jul 2022 12:08:37 +0000 (14:08 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 25 Jul 2022 14:47:02 +0000 (16:47 +0200)
Use full strings for better greppability.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_migration.c

index 01cc9da8b3489880b6642679177da308d99c71c9..be5fc455f94a072af09c2f3b6b2a33cacb2f06d8 100644 (file)
@@ -4267,11 +4267,11 @@ static void qemuMigrationSrcIOFunc(void *arg)
                 goto abrt;
             }
 
-            VIR_DEBUG("Migration tunnel was asked to %s",
-                      stop ? "abort" : "finish");
             if (stop) {
+                VIR_DEBUG("Migration tunnel was asked to abort");
                 goto abrt;
             } else {
+                VIR_DEBUG("Migration tunnel was asked to finish");
                 timeout = 0;
             }
         }