瀏覽代碼

error: Convert qemu_opts_validate() to QError

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Markus Armbruster 15 年之前
父節點
當前提交
db716e9c16
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      qemu-option.c

+ 1 - 2
qemu-option.c

@@ -877,8 +877,7 @@ int qemu_opts_validate(QemuOpts *opts, const QemuOptDesc *desc)
             }
             }
         }
         }
         if (desc[i].name == NULL) {
         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;
             return -1;
         }
         }