summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2017-04-03 12:52:53 +0200
committerKarel Zak2017-04-03 12:52:53 +0200
commitcab84ea39cfd19d197b4b59005aeaeaa94b83917 (patch)
tree07a8e3cae03a1ade37fc0ebb3f61ccbf899d36ae
parenttests: add --mountpoint to findmnt calls (diff)
downloadkernel-qcow2-util-linux-cab84ea39cfd19d197b4b59005aeaeaa94b83917.tar.gz
kernel-qcow2-util-linux-cab84ea39cfd19d197b4b59005aeaeaa94b83917.tar.xz
kernel-qcow2-util-linux-cab84ea39cfd19d197b4b59005aeaeaa94b83917.zip
lib/strutils: fix typos in huge size suffixes
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--lib/strutils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/strutils.c b/lib/strutils.c
index 74c850bce..45127b5a2 100644
--- a/lib/strutils.c
+++ b/lib/strutils.c
@@ -60,8 +60,8 @@ int parse_size(const char *str, uintmax_t *res, int *power)
uintmax_t x, frac = 0;
int base = 1024, rc = 0, pwr = 0, frac_zeros = 0;
- static const char *suf = "KMGTPEYZ";
- static const char *suf2 = "kmgtpeyz";
+ static const char *suf = "KMGTPEZY";
+ static const char *suf2 = "kmgtpezy";
const char *sp;
*res = 0;
@@ -516,7 +516,7 @@ void xstrmode(mode_t mode, char *str)
}
/*
- * returns exponent (2^x=n) in range KiB..PiB
+ * returns exponent (2^x=n) in range KiB..EiB (2^10..2^60)
*/
static int get_exp(uint64_t n)
{