]> git.ipfire.org Git - thirdparty/qemu.git/commit
qdev-properties: add getter for size32 and blocksize
authorRoman Kagan <rvkagan@yandex-team.ru>
Thu, 28 May 2020 22:55:15 +0000 (01:55 +0300)
committerKevin Wolf <kwolf@redhat.com>
Wed, 17 Jun 2020 12:53:40 +0000 (14:53 +0200)
commit031ffd9a612618e86eb1d783b285d658e95f117d
tree1e070b2ed1d3186fe3c10769a36fc483b6b5f364
parent4f44bbc5bba0858d34b1aa356397847696276546
qdev-properties: add getter for size32 and blocksize

Add getter for size32, and use it for blocksize, too.

In its human-readable branch, it reports approximate size in
human-readable units next to the exact byte value, like the getter for
64bit size does.

Adjust the expected test output accordingly.

Signed-off-by: Roman Kagan <rvkagan@yandex-team.ru>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200528225516.1676602-8-rvkagan@yandex-team.ru>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/core/qdev-properties.c
tests/qemu-iotests/172.out