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>
This commit is contained in:
Peter Maydell 2014-03-27 14:00:52 +00:00
parent d4715c4183
commit a7a5544a3a

3
vl.c
View File

@ -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);
}