]> Git Repo - qemu.git/commitdiff
error: Convert qemu_opts_validate() to QError
authorMarkus Armbruster <[email protected]>
Thu, 25 Mar 2010 16:22:37 +0000 (17:22 +0100)
committerAurelien Jarno <[email protected]>
Sun, 18 Apr 2010 21:46:48 +0000 (23:46 +0200)
Signed-off-by: Markus Armbruster <[email protected]>
Signed-off-by: Luiz Capitulino <[email protected]>
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;
         }
 
This page took 0.030062 seconds and 4 git commands to generate.