FYI; pushed trivial patch

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

 



I've pushed the attached trivial patch to fix the compile on i686.

--
Chris Lalancette
commit ee41ba665be4282eed3911c60679c036bae31dd6
Author: Chris Lalancette <clalance@xxxxxxxxxx>
Date:   Fri Jul 16 09:14:53 2010 -0400

    Fix compile on i686.
    
    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@xxxxxxxxxx>

diff --git a/tools/virsh.c b/tools/virsh.c
index abc18bb..6da5080 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -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,
--
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]