qemu: Add strtosz_suffix_unit function
commita732e1baa864d5b10c5cfd9e3e437563b771c1a8
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 7 Jul 2011 14:13:11 +0000 (7 16:13 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 5 Aug 2011 15:04:27 +0000 (5 12:04 -0300)
tree8de5136d1a0cda612d757952f0a804b851ade64a
parent2a1ac12b0bb29054f5fbc8144c800ca7634c0658
qemu: Add strtosz_suffix_unit function

This function does the same as the strtosz_suffix function
except that it allows to specify the unit to which the
k/M/B/T suffixes apply. This function will be used later to
parse the tsc-frequency from the command-line.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
cutils.c
qemu-common.h