diff options
author | michael@ozlabs.org <michael@ozlabs.org> | 2011-12-13 12:22:58 +1100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-15 09:27:23 -0600 |
commit | 15d37e709fa809f1b64d3ad81965f3d8200e828a (patch) | |
tree | 02aa1a655000e0012c2fc1b37a999e0d6214925c /vl.c | |
parent | 7636a470a8ccd99cfb2d89eae9b6720be5a203c4 (diff) |
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 be995c27640a82c7056b6f53d02ec823570114e5
("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: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |