summaryrefslogtreecommitdiff
path: root/trace
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2017-05-12 12:17:40 +0800
committerDr. David Alan Gilbert <dgilbert@redhat.com>2017-05-17 17:30:45 +0100
commit22951aaaebb6c4c314c58ad576960a9c57695bbc (patch)
treef1071715f4dbec35fdeca1703eaf6fb5815ebb74 /trace
parent99e15582dea30d4a7c6fa5be9196d0f4d759231c (diff)
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 'trace')
0 files changed, 0 insertions, 0 deletions