summary refs log tree commit diff stats
path: root/qemu-char.c
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2010-10-21 17:15:46 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-11-03 12:48:09 -0500
commit9f9b17a4f0865286391e4d3a0a735230122a2289 (patch)
treed80f635564a4130868aba2065e36729901c766d0 /qemu-char.c
parent7d72e76228351d18a856f1e4f5365b59d3205dc3 (diff)
downloadfocaccia-qemu-9f9b17a4f0865286391e4d3a0a735230122a2289.tar.gz
focaccia-qemu-9f9b17a4f0865286391e4d3a0a735230122a2289.zip
Introduce strtosz() library function to convert a string to a byte count.
strtosz() returns -1 on error. It now supports human unit formats in
eg. 1.0G, with better error handling.

The following suffixes are supported:
B/b = bytes
K/k = KB
M/m = MB
G/g = GB
T/t = TB

This patch changes -numa and -m input to use strtosz().

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-char.c')
0 files changed, 0 insertions, 0 deletions