]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virDomainDriverAutoShutdown: Fix printf conversion specifier for 'waitShutdownSecs'
authorPeter Krempa <pkrempa@redhat.com>
Mon, 9 Jun 2025 06:19:04 +0000 (08:19 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 9 Jun 2025 06:19:04 +0000 (08:19 +0200)
The variable is declared as unsigned int but two places used '%d'.

Reported-in: https://issues.redhat.com/browse/RHEL-95721
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/hypervisor/domain_driver.c

index 35966a5a8dda589e523c1f215d5380361eb31c07..62bbe176aeab2f77fd3ad6dbcab57ac79269f11d 100644 (file)
@@ -880,9 +880,9 @@ virDomainDriverAutoShutdown(virDomainDriverAutoShutdownConfig *cfg)
         }
 
         timer = g_timer_new();
-        virSystemdNotifyStatus("Waiting %d secs for VM shutdown completion",
+        virSystemdNotifyStatus("Waiting %u secs for VM shutdown completion",
                                cfg->waitShutdownSecs);
-        VIR_INFO("Waiting %d secs for VM shutdown completion", cfg->waitShutdownSecs);
+        VIR_INFO("Waiting %u secs for VM shutdown completion", cfg->waitShutdownSecs);
         while (1) {
             bool anyRunning = false;
             for (i = 0; i < numDomains; i++) {