qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH v2 13/16] vl.c: Reword -machine help error messages


From: Eduardo Habkost
Subject: [Qemu-devel] [PATCH v2 13/16] vl.c: Reword -machine help error messages
Date: Wed, 28 Oct 2015 16:37:02 -0200

* Use "\n" consistently in both error messages.
* Simplify error message.

Signed-off-by: Eduardo Habkost <address@hidden>
---
 vl.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/vl.c b/vl.c
index 61e474b..55521a0 100644
--- a/vl.c
+++ b/vl.c
@@ -2634,8 +2634,8 @@ static gint machine_class_cmp(gconstpointer a, 
gconstpointer b)
         return mc;
     }
     if (name && !is_help_option(name)) {
-        error_report("unsupported machine type");
-        error_printf("Use -machine help to list supported machines!\n");
+        error_report("unsupported machine type\n"
+                     "Use -machine help to list supported machines");
     } else {
         printf("Supported machines are:\n");
         machines = g_slist_sort(machines, machine_class_cmp);
@@ -3994,8 +3994,8 @@ int main(int argc, char **argv, char **envp)
     }
 
     if (machine_class == NULL) {
-        error_report("No machine specified, and there is no default.\n"
-                     "Use -machine help to list supported machines!");
+        error_report("no machine specified\n"
+                     "Use -machine help to list supported machines");
         exit(1);
     }
 
-- 
2.1.0




reply via email to

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