qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH] Remove bogus error message from qemu_opts_set()


From: Mark McLoughlin
Subject: [Qemu-devel] [PATCH] Remove bogus error message from qemu_opts_set()
Date: Tue, 6 Oct 2009 12:16:59 +0100

The only way qemu_opts_create() can fail is if a QemuOpts with that id
already exists and fail_if_exists=1. In that case, we already print
an error which makes more sense than the one in qemu_opts_set().

Signed-off-by: Mark McLoughlin <address@hidden>
---
 qemu-option.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/qemu-option.c b/qemu-option.c
index 0892286..293f94c 100644
--- a/qemu-option.c
+++ b/qemu-option.c
@@ -670,8 +670,6 @@ int qemu_opts_set(QemuOptsList *list, const char *id,
 
     opts = qemu_opts_create(list, id, 1);
     if (opts == NULL) {
-        fprintf(stderr, "id \"%s\" not found for \"%s\"\n",
-                id, list->name);
         return -1;
     }
     return qemu_opt_set(opts, name, value);
-- 
1.6.2.5





reply via email to

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