projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e17ba87
)
error: Convert qemu_opts_validate() to QError
author
Markus Armbruster
<armbru@redhat.com>
Thu, 25 Mar 2010 16:22:37 +0000
(17:22 +0100)
committer
Aurelien 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
patch
|
blob
|
history
diff --git
a/qemu-option.c
b/qemu-option.c
index 394c763a0041ab1002479bcd004a2231e3a1b2a6..1ffc4978286937930246262b1b847461ceb2a0c3 100644
(file)
--- a/
qemu-option.c
+++ b/
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;
}