]> xenbits.xensource.com Git - libvirt.git/commit
virt-admin: Output srv-threadpool-info data as unsigned int rather than signed
authorErik Skultety <eskultet@redhat.com>
Mon, 18 Jul 2016 08:45:17 +0000 (10:45 +0200)
committerErik Skultety <eskultet@redhat.com>
Tue, 19 Jul 2016 11:27:45 +0000 (13:27 +0200)
commita8962f705d5b7973e322b81c38e46eb542cb1ad4
treecb31117203463784fd57c4fcfda7f6339bc247d3
parent8215aab0036e65da47a2646f85749e9f5ea5d252
virt-admin: Output srv-threadpool-info data as unsigned int rather than signed

Internally, all the data are represented as unsigned int, it is also documented
in the header file that users should use our exported constants that also
indicate that the data should be unsigned int. However, when polling for the
current server threadpool's configuration, virt-admin uses an incorrect
formatting parameter '%d' for printf. Instead, virt-admin should use formatting
parameter '%u'.

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

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