[PATCH 1/2] vircgroupv2devices: Fix format string for size_t variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In virCgroupV2DevicesReallocMap() we are debug printing both
arguments passed to the function. However, the @size argument is
type of size_t but '%lu' is used to format it.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 src/util/vircgroupv2devices.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/vircgroupv2devices.c b/src/util/vircgroupv2devices.c
index 6b4ea3142f..dcf8925b18 100644
--- a/src/util/vircgroupv2devices.c
+++ b/src/util/vircgroupv2devices.c
@@ -456,7 +456,7 @@ virCgroupV2DevicesReallocMap(int mapfd,
     int ret = -1;
     VIR_AUTOCLOSE newmapfd = virCgroupV2DevicesCreateMap(size);
 
-    VIR_DEBUG("realloc devices map mapfd:%d, size:%lu", mapfd, size);
+    VIR_DEBUG("realloc devices map mapfd:%d, size:%zu", mapfd, size);
 
     if (newmapfd < 0)
         return -1;
-- 
2.23.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux