Re: [Qemu-devel] [PATCH 1/5] Introduce strtobytes() library function to convert string to byte count.

2010-09-28 Thread Markus Armbruster
jes.soren...@redhat.com writes: > From: Jes Sorensen > > Signed-off-by: Jes Sorensen > --- > cutils.c | 39 +++ > qemu-common.h |1 + > vl.c | 26 +++--- > 3 files changed, 47 insertions(+), 19 deletions(-) > > diff -

[Qemu-devel] [PATCH 1/5] Introduce strtobytes() library function to convert string to byte count.

2010-09-16 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- cutils.c | 39 +++ qemu-common.h |1 + vl.c | 26 +++--- 3 files changed, 47 insertions(+), 19 deletions(-) diff --git a/cutils.c b/cutils.c index 036ae3c..dabbed4 1

Re: [Qemu-devel] [PATCH 1/5] Introduce strtobytes() library function to convert string to byte count.

2010-09-15 Thread Stefan Weil
Am 15.09.2010 20:46, schrieb Andreas Färber: Am 15.09.2010 um 14:23 schrieb jes.soren...@redhat.com: [...] +/* + * Convert string to bytes, allowing either K/k for KB, M/m for MB, + * G/b for GB or T/t for TB. Default without any postfix is MB. ^^^ typo + * End pointer will be returned i

Re: [Qemu-devel] [PATCH 1/5] Introduce strtobytes() library function to convert string to byte count.

2010-09-15 Thread Andreas Färber
Am 15.09.2010 um 14:23 schrieb jes.soren...@redhat.com: [...] +/* + * Convert string to bytes, allowing either K/k for KB, M/m for MB, + * G/b for GB or T/t for TB. Default without any postfix is MB. ^^^ typo + * End pointer will be returned in *end, if end is valid. + * Return 0 on error

[Qemu-devel] [PATCH 1/5] Introduce strtobytes() library function to convert string to byte count.

2010-09-15 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- cutils.c | 39 +++ qemu-common.h |1 + vl.c | 26 +++--- 3 files changed, 47 insertions(+), 19 deletions(-) diff --git a/cutils.c b/cutils.c index 036ae3c..a3087fe 1