diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-08-19 09:16:56 +0000 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-08-19 09:16:56 +0000 |
commit | 7184ccd780f046258fdf6c4e67d10547411cfcce (patch) | |
tree | c052d39d06e5589dd505644a031a280cfc5987a1 /xen/common/lib.c | |
parent | 058c5531b1d338a514468db8b29ac72c9350bf70 (diff) | |
download | xen-7184ccd780f046258fdf6c4e67d10547411cfcce.tar.gz xen-7184ccd780f046258fdf6c4e67d10547411cfcce.tar.bz2 xen-7184ccd780f046258fdf6c4e67d10547411cfcce.zip |
Default unit for all Xen memory parameters is kilobytes.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/common/lib.c')
-rw-r--r-- | xen/common/lib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xen/common/lib.c b/xen/common/lib.c index 764ad7143d..1eb70fe6c4 100644 --- a/xen/common/lib.c +++ b/xen/common/lib.c @@ -450,8 +450,10 @@ unsigned long long parse_size_and_unit(char *s) ret <<= 10; case 'M': case 'm': ret <<= 10; - case 'K': case 'k': + case 'K': case 'k': default: ret <<= 10; + case 'B': case 'b': + break; } return ret; |