From: Erik Skultety Date: Mon, 5 Sep 2016 11:51:21 +0000 (+0200) Subject: virt-admin: Output srv-clients-set data as unsigned int rather than signed X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e2c63714a87696e820313d50e005a6b9e53bad19;p=libvirt.git virt-admin: Output srv-clients-set data as unsigned int rather than signed 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 --- diff --git a/tools/virt-admin.c b/tools/virt-admin.c index 513054b38b..12ec0578fb 100644 --- a/tools/virt-admin.c +++ b/tools/virt-admin.c @@ -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;