]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: silence compiler warning
authorEric Blake <eblake@redhat.com>
Wed, 3 Mar 2010 00:19:01 +0000 (17:19 -0700)
committerJim Meyering <meyering@redhat.com>
Wed, 3 Mar 2010 09:17:31 +0000 (10:17 +0100)
gcc warns:
virsh.c:1879: warning: '0' flag ignored with '-' flag in gnu_printf format

* tools/virsh.c (cmdDomjobinfo): Delete useless flag.

tools/virsh.c

index a6a637d1ba056b0ba211678ec7b0f6d29a6426a3..65487ed6f48411fb36de7de1d4ce7bc04aee753b 100644 (file)
@@ -1876,27 +1876,27 @@ cmdDomjobinfo(vshControl *ctl, const vshCmd *cmd)
             vshPrint(ctl, "%-17s %-12llu ms\n", _("Time remaining:"), info.timeRemaining);
         if (info.dataTotal || info.dataRemaining || info.dataProcessed) {
             val = prettyCapacity(info.dataProcessed, &unit);
-            vshPrint(ctl, "%-17s %-0.3lf %s\n", _("Data processed:"), val, unit);
+            vshPrint(ctl, "%-17s %-.3lf %s\n", _("Data processed:"), val, unit);
             val = prettyCapacity(info.dataRemaining, &unit);
-            vshPrint(ctl, "%-17s %-0.3lf %s\n", _("Data remaining:"), val, unit);
+            vshPrint(ctl, "%-17s %-.3lf %s\n", _("Data remaining:"), val, unit);
             val = prettyCapacity(info.dataTotal, &unit);
-            vshPrint(ctl, "%-17s %-0.3lf %s\n", _("Data total:"), val, unit);
+            vshPrint(ctl, "%-17s %-.3lf %s\n", _("Data total:"), val, unit);
         }
         if (info.memTotal || info.memRemaining || info.memProcessed) {
             val = prettyCapacity(info.memProcessed, &unit);
-            vshPrint(ctl, "%-17s %-0.3lf %s\n", _("Memory processed:"), val, unit);
+            vshPrint(ctl, "%-17s %-.3lf %s\n", _("Memory processed:"), val, unit);
             val = prettyCapacity(info.memRemaining, &unit);
-            vshPrint(ctl, "%-17s %-0.3lf %s\n", _("Memory remaining:"), val, unit);
+            vshPrint(ctl, "%-17s %-.3lf %s\n", _("Memory remaining:"), val, unit);
             val = prettyCapacity(info.memTotal, &unit);
-            vshPrint(ctl, "%-17s %-0.3lf %s\n", _("Memory total:"), val, unit);
+            vshPrint(ctl, "%-17s %-.3lf %s\n", _("Memory total:"), val, unit);
         }
         if (info.fileTotal || info.fileRemaining || info.fileProcessed) {
             val = prettyCapacity(info.fileProcessed, &unit);
-            vshPrint(ctl, "%-17s %-0.3lf %s\n", _("File processed:"), val, unit);
+            vshPrint(ctl, "%-17s %-.3lf %s\n", _("File processed:"), val, unit);
             val = prettyCapacity(info.fileRemaining, &unit);
-            vshPrint(ctl, "%-17s %-0.3lf %s\n", _("File remaining:"), val, unit);
+            vshPrint(ctl, "%-17s %-.3lf %s\n", _("File remaining:"), val, unit);
             val = prettyCapacity(info.fileTotal, &unit);
-            vshPrint(ctl, "%-17s %-0.3lf %s\n", _("File total:"), val, unit);
+            vshPrint(ctl, "%-17s %-.3lf %s\n", _("File total:"), val, unit);
         }
     } else {
         ret = FALSE;