Commit 15d37e70 authored by michael@ozlabs.org's avatar michael@ozlabs.org Committed by Anthony Liguori
Browse files

vl.c: Print the actual program name in help output



In help() we do what boils down to:

  printf("%s", "qemu");

This seems to be an artifact of be995c27
("removed unused code"), which removed some ifdef'ery that used to print
a different name depending on CONFIG_SOFTMMU.

Instead print the actual program name, originally from argv[0].

Signed-off-by: default avatarMichael Ellerman <michael@ellerman.id.au>
Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
parent 7636a470
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1513,7 +1513,7 @@ static void help(int exitcode)
           "ctrl-alt        toggle mouse and keyboard grab\n"
           "\n"
           "When using -nographic, press 'ctrl-a h' to get some help.\n",
           "qemu",
           error_get_progname(),
           options_help);
    exit(exitcode);
}