]> xenbits.xensource.com Git - libvirt.git/commitdiff
virt-admin: Output srv-clients-set data as unsigned int rather than signed
authorErik Skultety <eskultet@redhat.com>
Mon, 5 Sep 2016 11:51:21 +0000 (13:51 +0200)
committerErik Skultety <eskultet@redhat.com>
Wed, 7 Sep 2016 12:07:18 +0000 (14:07 +0200)
Unfortunately, commit a8962f70 only fixed first half of the reported issue of
virt-admin outputting negative values where unsigned int is expected by
BZ below, so this commit represents the other missing half of the fix.

resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1356769

Signed-off-by: Erik Skultety <eskultet@redhat.com>
tools/virt-admin.c

index 513054b38b9951a44cc4a55552e77ce4b6ec9ce8..12ec0578fbb683c706f947fb554d9589ba1a0aa7 100644 (file)
@@ -857,7 +857,7 @@ cmdSrvClientsInfo(vshControl *ctl, const vshCmd *cmd)
     }
 
     for (i = 0; i < nparams; i++)
-        vshPrint(ctl, "%-20s: %d\n", params[i].field, params[i].value.ui);
+        vshPrint(ctl, "%-20s: %u\n", params[i].field, params[i].value.ui);
 
     ret = true;