]> xenbits.xensource.com Git - libvirt.git/commitdiff
storage/rbd: Use correct printf-modifier for uint64
authorChristophe Fergeau <cfergeau@redhat.com>
Mon, 14 Mar 2016 10:41:05 +0000 (11:41 +0100)
committerCole Robinson <crobinso@redhat.com>
Fri, 25 Mar 2016 13:04:46 +0000 (09:04 -0400)
%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

index 3e70a42bb5e82b094e586eb7a8b586064126eb95..c9b47e215a2aff3cf4f445565be7d4edaf6fafa5 100644 (file)
@@ -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;