OSDN Git Service

vl.c: Improve message when no default machine is found
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 27 Mar 2014 14:00:52 +0000 (14:00 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 27 Mar 2014 14:01:13 +0000 (14:01 +0000)
Improve the clarity of the message QEMU prints when the user
doesn't specify a machine model to use and there is no default.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel.a@redhat.com>
vl.c

diff --git a/vl.c b/vl.c
index 2355227..9975e5a 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -3929,7 +3929,8 @@ int main(int argc, char **argv, char **envp)
 #endif
 
     if (machine_class == NULL) {
-        fprintf(stderr, "No machine found.\n");
+        fprintf(stderr, "No machine specified, and there is no default.\n"
+                "Use -machine help to list supported machines!\n");
         exit(1);
     }