From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nu1SM-0007t2-34 for qemu-devel@nongnu.org; Tue, 23 Mar 2010 06:35:30 -0400 Received: from [199.232.76.173] (port=60121 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nu1SK-0007sR-UT for qemu-devel@nongnu.org; Tue, 23 Mar 2010 06:35:29 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nu1SI-0005MD-0o for qemu-devel@nongnu.org; Tue, 23 Mar 2010 06:35:28 -0400 Received: from oxygen.pond.sub.org ([213.239.205.148]:44102) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nu1SG-0005Lv-UK for qemu-devel@nongnu.org; Tue, 23 Mar 2010 06:35:25 -0400 Received: from blackfin.pond.sub.org (pD951AFA7.dip.t-dialin.net [217.81.175.167]) by oxygen.pond.sub.org (Postfix) with ESMTPA id 7E1BD276DA7 for ; Tue, 23 Mar 2010 11:27:59 +0100 (CET) From: Markus Armbruster Date: Tue, 23 Mar 2010 11:27:55 +0100 Message-Id: <1269340078-16446-2-git-send-email-armbru@redhat.com> In-Reply-To: <1269340078-16446-1-git-send-email-armbru@redhat.com> References: <1269340078-16446-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH 1/4] monitor: Rename argument type 'b' to 'f' List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: lcapitulino@redhat.com To make 'b' available for boolean argument. Signed-off-by: Markus Armbruster --- monitor.c | 8 ++++---- qemu-monitor.hx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/monitor.c b/monitor.c index 35cbce7..3ce9a4e 100644 --- a/monitor.c +++ b/monitor.c @@ -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 @@ -3798,7 +3798,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; @@ -3814,7 +3814,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; @@ -4315,7 +4315,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"); diff --git a/qemu-monitor.hx b/qemu-monitor.hx index 31087bd..8c9a41c 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -804,7 +804,7 @@ ETEXI { .name = "migrate_set_speed", - .args_type = "value:b", + .args_type = "value:f", .params = "value", .help = "set maximum speed (in bytes) for migrations", .user_print = monitor_user_noop, -- 1.6.6.1