diff options
author | Markus Armbruster <armbru@redhat.com> | 2010-03-26 09:07:08 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-04-18 23:55:19 +0200 |
commit | ee9545dad4004b92a93554a92cbb3e1b0e1c949d (patch) | |
tree | c0eb3a6c8994bd9967b3bd4b3d51d2cec1b335b2 /monitor.c | |
parent | ae82d3242d9db904f8ab81a5c7d796ae2eb46f04 (diff) | |
download | qemu-ee9545dad4004b92a93554a92cbb3e1b0e1c949d.zip qemu-ee9545dad4004b92a93554a92cbb3e1b0e1c949d.tar.gz qemu-ee9545dad4004b92a93554a92cbb3e1b0e1c949d.tar.bz2 |
monitor: Rename argument type 'b' to 'f'
To make 'b' available for boolean argument.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -74,7 +74,7 @@ * 'l' target long (32 or 64 bit) * 'M' just like 'l', except in user mode the value is * multiplied by 2^20 (think Mebibyte) - * 'b' double + * 'f' double * user mode accepts an optional G, g, M, m, K, k suffix, * which multiplies the value by 2^30 for suffixes G and * g, 2^20 for M and m, 2^10 for K and k @@ -3714,7 +3714,7 @@ static const mon_cmd_t *monitor_parse_command(Monitor *mon, qdict_put(qdict, key, qint_from_int(val)); } break; - case 'b': + case 'f': case 'T': { double val; @@ -3730,7 +3730,7 @@ static const mon_cmd_t *monitor_parse_command(Monitor *mon, if (get_double(mon, &val, &p) < 0) { goto fail; } - if (c == 'b' && *p) { + if (c == 'f' && *p) { switch (*p) { case 'K': case 'k': val *= 1 << 10; p++; break; @@ -4231,7 +4231,7 @@ static int check_arg(const CmdArgs *cmd_args, QDict *args) return -1; } break; - case 'b': + case 'f': case 'T': if (qobject_type(value) != QTYPE_QINT && qobject_type(value) != QTYPE_QFLOAT) { qerror_report(QERR_INVALID_PARAMETER_TYPE, name, "number"); |