summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2020-07-02 16:31:35 -0700
committerBart Van Assche <bvanassche@acm.org>2020-07-02 16:31:57 -0700
commit78c14fab5f339e0165ab32d3c50efbed16950489 (patch)
treeeda12c71af479033388ca043bcc835cc64b0250c /lib
parent53916bbd100ef806a7af6ece50c4ee0569bac4c6 (diff)
downloadfio-78c14fab5f339e0165ab32d3c50efbed16950489.tar.gz
fio-78c14fab5f339e0165ab32d3c50efbed16950489.tar.bz2
num2str(): Add the E (exa) prefix
This change guarantees that all 64-bit integers that should be assigned a multiplier are assigned a multiplier. Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/num2str.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/num2str.c b/lib/num2str.c
index 7f628d29..726f1c44 100644
--- a/lib/num2str.c
+++ b/lib/num2str.c
@@ -20,8 +20,8 @@
*/
char *num2str(uint64_t num, int maxlen, int base, int pow2, enum n2s_unit units)
{
- const char *sistr[] = { "", "k", "M", "G", "T", "P" };
- const char *iecstr[] = { "", "Ki", "Mi", "Gi", "Ti", "Pi" };
+ const char *sistr[] = { "", "k", "M", "G", "T", "P", "E" };
+ const char *iecstr[] = { "", "Ki", "Mi", "Gi", "Ti", "Pi", "Ei" };
const char **unitprefix;
static const char *const unitstr[] = {
[N2S_NONE] = "",