Browse Source

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 năm trước cách đây
mục cha
commit
db716e9c16
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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) {
-            fprintf(stderr, "option \"%s\" is not valid for %s\n",
-                    opt->name, opts->list->name);
+            qerror_report(QERR_INVALID_PARAMETER, opt->name);
             return -1;
         }