aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2014-03-27 14:00:52 +0000
committerPeter Maydell <peter.maydell@linaro.org>2014-03-27 14:01:13 +0000
commita7a5544a3a59600f30f29985397f56ee40929850 (patch)
tree5d034b48152b220aba9fd1c5c11cce862f220d5b
parentd4715c4183043c5e977f821b6f9ca88b17d90bbb (diff)
vl.c: Improve message when no default machine is found
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>
-rw-r--r--vl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 2355227bcb..9975e5a4e3 100644
--- 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);
}