diff options
author | Peter Xu | 2017-05-12 06:17:40 +0200 |
---|---|---|
committer | Dr. David Alan Gilbert | 2017-05-17 18:30:45 +0200 |
commit | 22951aaaebb6c4c314c58ad576960a9c57695bbc (patch) | |
tree | f1071715f4dbec35fdeca1703eaf6fb5815ebb74 /kvm-all.c | |
parent | ramblock: add RAMBLOCK_FOREACH() (diff) | |
download | qemu-22951aaaebb6c4c314c58ad576960a9c57695bbc.tar.gz qemu-22951aaaebb6c4c314c58ad576960a9c57695bbc.tar.xz qemu-22951aaaebb6c4c314c58ad576960a9c57695bbc.zip |
utils: provide size_to_str()
Moving the algorithm from print_type_size() into size_to_str() so that
other component can also leverage it. With that, refactor
print_type_size().
The assert() in that logic is removed though, since even UINT64_MAX
would not overflow.
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <1494562661-9063-3-git-send-email-peterx@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'kvm-all.c')
0 files changed, 0 insertions, 0 deletions