]> git.proxmox.com Git - qemu.git/commitdiff
error: Convert qemu_opts_validate() to QError
authorMarkus Armbruster <armbru@redhat.com>
Thu, 25 Mar 2010 16:22:37 +0000 (17:22 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 18 Apr 2010 21:46:48 +0000 (23:46 +0200)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
qemu-option.c

index 394c763a0041ab1002479bcd004a2231e3a1b2a6..1ffc4978286937930246262b1b847461ceb2a0c3 100644 (file)
@@ -877,8 +877,7 @@ int qemu_opts_validate(QemuOpts *opts, const QemuOptDesc *desc)
             }
         }
         if (desc[i].name == NULL) {
-            fprintf(stderr, "option \"%s\" is not valid for %s\n",
-                    opt->name, opts->list->name);
+            qerror_report(QERR_INVALID_PARAMETER, opt->name);
             return -1;
         }