qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT b386bec] Remove double error message for -device


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT b386bec] Remove double error message for -device optionparsing
Date: Tue, 06 Oct 2009 20:05:42 -0000

From: Mark McLoughlin <address@hidden>

qemu_opts_parse() gives a suitable error message in all failure cases
so we can remove the error message from the caller.

Signed-off-by: Mark McLoughlin <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/vl.c b/vl.c
index 75b640a..d52a1e4 100644
--- a/vl.c
+++ b/vl.c
@@ -5359,9 +5359,7 @@ int main(int argc, char **argv, char **envp)
                 add_device_config(DEV_USB, optarg);
                 break;
             case QEMU_OPTION_device:
-                opts = qemu_opts_parse(&qemu_device_opts, optarg, "driver");
-                if (!opts) {
-                    fprintf(stderr, "parse error: %s\n", optarg);
+                if (!qemu_opts_parse(&qemu_device_opts, optarg, "driver")) {
                     exit(1);
                 }
                 break;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]