qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 08/11] error: Convert qemu_opts_validate() to QError


From: Markus Armbruster
Subject: [Qemu-devel] [PATCH 08/11] error: Convert qemu_opts_validate() to QError
Date: Thu, 18 Mar 2010 17:33:15 +0100

Signed-off-by: Markus Armbruster <address@hidden>
---
 qemu-option.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/qemu-option.c b/qemu-option.c
index 5c39666..8b45068 100644
--- a/qemu-option.c
+++ b/qemu-option.c
@@ -874,8 +874,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;
         }
 
-- 
1.6.6.1





reply via email to

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