]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Don't output too many zeros from virBitmapToString
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 23 Aug 2017 07:09:17 +0000 (09:09 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Sat, 18 Nov 2017 09:45:10 +0000 (10:45 +0100)
commitfb106028752d8bd31f48a7c50357b7437b87d7c1
tree486a38114db10121853aee49e5b74a9eb02972b2
parent5d893ed6ad7f42fb9ae94c6150c9d8aedc5c512b
util: Don't output too many zeros from virBitmapToString

Truncate the output so that it is only as big as is needed to fit all
the bits, not all the units from the map.  This will be needed in the
future in order to properly format bitmaps for kernel's sysfs files.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_capabilities.c
src/util/virbitmap.c
src/util/virbitmap.h