mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-08 12:41:29 +00:00
vircgroupv2devices: Fix format string for size_t variable
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@redhat.com>
This commit is contained in:
parent
2de5e131b9
commit
c10b78370d
@ -456,7 +456,7 @@ virCgroupV2DevicesReallocMap(int mapfd,
|
|||||||
int ret = -1;
|
int ret = -1;
|
||||||
VIR_AUTOCLOSE newmapfd = virCgroupV2DevicesCreateMap(size);
|
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)
|
if (newmapfd < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user