[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/2] monitor: Use QERR_INVALID_PARAMETER instead

From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH 1/2] monitor: Use QERR_INVALID_PARAMETER instead of QERR_INVALID_CPU_INDEX
Date: Wed, 03 Feb 2010 12:50:13 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20091209 Fedora/3.0-4.fc12 Lightning/1.0pre Thunderbird/3.0

On 01/29/2010 03:34 AM, Markus Armbruster wrote:
This changes the error message from "Invalid CPU index" to "Invalid
parameter index" in the human monitor.

Signed-off-by: Markus Armbruster<address@hidden>

Applied both.  Thanks.


Anthony Liguori

  monitor.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/monitor.c b/monitor.c
index fb7c572..69ebac5 100644
--- a/monitor.c
+++ b/monitor.c
@@ -897,7 +897,7 @@ static void do_cpu_set(Monitor *mon, const QDict *qdict, 
QObject **ret_data)
      int index = qdict_get_int(qdict, "index");
      if (mon_set_cpu(index)<  0)
-        qemu_error_new(QERR_INVALID_CPU_INDEX);
+        qemu_error_new(QERR_INVALID_PARAMETER, "index");

  static void do_info_jit(Monitor *mon)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]