]> git.proxmox.com Git - qemu.git/commitdiff
Remove bogus error message from qemu_opts_set()
authorMark McLoughlin <markmc@redhat.com>
Tue, 6 Oct 2009 11:16:59 +0000 (12:16 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 6 Oct 2009 19:36:11 +0000 (14:36 -0500)
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 <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-option.c

index 0892286564e5b94da51ee86d6eac84b91d57552f..293f94cf078239022bd01d3ea7c6ff2f95909442 100644 (file)
@@ -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);