From: Christophe Fergeau Date: Mon, 14 Mar 2016 10:41:05 +0000 (+0100) Subject: storage/rbd: Use correct printf-modifier for uint64 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7114c5ff25b91f21f92a076ffaba80308b87e2d0;p=libvirt.git storage/rbd: Use correct printf-modifier for uint64 %zu is for size_t variables, not uint64 ones. This causes a warning when building on a 32 bit linux. --- diff --git a/src/storage/storage_backend_rbd.c b/src/storage/storage_backend_rbd.c index 3e70a42bb5..c9b47e215a 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;