diff options
author | Karel Zak | 2019-02-12 13:27:56 +0100 |
---|---|---|
committer | Karel Zak | 2019-02-12 14:20:55 +0100 |
commit | 07b94c9f327c0b3230022b55f8105249f205a739 (patch) | |
tree | 8b375ac074cd4f91a3a778b96035341c8b6b5276 /include | |
parent | tests: (hardlink) update noregex (diff) | |
download | kernel-qcow2-util-linux-07b94c9f327c0b3230022b55f8105249f205a739.tar.gz kernel-qcow2-util-linux-07b94c9f327c0b3230022b55f8105249f205a739.tar.xz kernel-qcow2-util-linux-07b94c9f327c0b3230022b55f8105249f205a739.zip |
lib/strutils: support two decimal places in size_to_human_string() output
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/strutils.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/strutils.h b/include/strutils.h index 0c4679882..65d5259db 100644 --- a/include/strutils.h +++ b/include/strutils.h @@ -121,9 +121,10 @@ extern char *xstrmode(mode_t mode, char *str); /* Options for size_to_human_string() */ enum { - SIZE_SUFFIX_1LETTER = 0, - SIZE_SUFFIX_3LETTER = 1, - SIZE_SUFFIX_SPACE = 2 + SIZE_SUFFIX_1LETTER = 0, + SIZE_SUFFIX_3LETTER = (1 << 0), + SIZE_SUFFIX_SPACE = (1 << 1), + SIZE_DECIMAL_2DIGITS = (1 << 2) }; extern char *size_to_human_string(int options, uint64_t bytes); |