Re: [PATCH] storage/rbd: Use correct printf-modifier for uint64

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

 



Ping?

On Mon, Mar 14, 2016 at 11:41:05AM +0100, Christophe Fergeau wrote:
> %zu is for size_t variables, not uint64 ones. This causes a warning when building on
> a 32 bit linux.
> ---
>  src/storage/storage_backend_rbd.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/storage/storage_backend_rbd.c b/src/storage/storage_backend_rbd.c
> index 7d04b39..d895cc6 100644
> --- a/src/storage/storage_backend_rbd.c
> +++ b/src/storage/storage_backend_rbd.c
> @@ -334,7 +334,7 @@ virStorageBackendRBDSetAllocation(virStorageVolDefPtr vol,
>          goto cleanup;
>      }
>  
> -    VIR_DEBUG("Found %zu bytes allocated for RBD image %s",
> +    VIR_DEBUG("Found %llu bytes allocated for RBD image %s",
>                allocation, vol->name);
>  
>      vol->target.allocation = allocation;
> -- 
> 2.5.0
> 
> --
> libvir-list mailing list
> libvir-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/libvir-list

Attachment: signature.asc
Description: PGP signature

--
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]