aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2013-06-05 14:19:27 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2013-06-06 11:27:03 +0200
commit5e00984aef7c1c317e27c0e8acf66526513c770f (patch)
treea2cbce230724bf4d8dc8270c66fb90ef476fa64e /util
parenta23818f4ff3d7981f49453b739f589e4205930b5 (diff)
downloadqemu-5e00984aef7c1c317e27c0e8acf66526513c770f.zip
qemu-5e00984aef7c1c317e27c0e8acf66526513c770f.tar.gz
qemu-5e00984aef7c1c317e27c0e8acf66526513c770f.tar.bz2
cutils: Support 'P' and 'E' suffixes in strtosz()
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'util')
-rw-r--r--util/cutils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/cutils.c b/util/cutils.c
index a165819..8f28896 100644
--- a/util/cutils.c
+++ b/util/cutils.c
@@ -267,6 +267,10 @@ static int64_t suffix_mul(char suffix, int64_t unit)
return unit * unit * unit;
case STRTOSZ_DEFSUFFIX_TB:
return unit * unit * unit * unit;
+ case STRTOSZ_DEFSUFFIX_PB:
+ return unit * unit * unit * unit * unit;
+ case STRTOSZ_DEFSUFFIX_EB:
+ return unit * unit * unit * unit * unit * unit;
}
return -1;
}