]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix compile on i686.
authorChris Lalancette <clalance@redhat.com>
Fri, 16 Jul 2010 13:14:53 +0000 (09:14 -0400)
committerChris Lalancette <clalance@redhat.com>
Fri, 16 Jul 2010 13:14:53 +0000 (09:14 -0400)
When printing out size_t, we need to use %zu to make sure it
will continue to compile on both 32-bit and 64-bit platforms.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
tools/virsh.c

index abc18bbc042b3b7fcac43017286ed38ee7c8f720..6da5080996d205a330216764921c6373f21e1bd7 100644 (file)
@@ -6495,11 +6495,11 @@ cmdVolList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
         allocStrLength = stringLength;
 
     /* Display the string lengths for debugging */
-    vshDebug(ctl, 5, "Longest name string = %lu chars\n", nameStrLength);
-    vshDebug(ctl, 5, "Longest path string = %lu chars\n", pathStrLength);
-    vshDebug(ctl, 5, "Longest type string = %lu chars\n", typeStrLength);
-    vshDebug(ctl, 5, "Longest capacity string = %lu chars\n", capStrLength);
-    vshDebug(ctl, 5, "Longest allocation string = %lu chars\n", allocStrLength);
+    vshDebug(ctl, 5, "Longest name string = %zu chars\n", nameStrLength);
+    vshDebug(ctl, 5, "Longest path string = %zu chars\n", pathStrLength);
+    vshDebug(ctl, 5, "Longest type string = %zu chars\n", typeStrLength);
+    vshDebug(ctl, 5, "Longest capacity string = %zu chars\n", capStrLength);
+    vshDebug(ctl, 5, "Longest allocation string = %zu chars\n", allocStrLength);
 
     /* Create the output template */
     ret = virAsprintf(&outputStr,