]> git.proxmox.com Git - qemu.git/commitdiff
vl.c: Print the actual program name in help output
authormichael@ozlabs.org <michael@ozlabs.org>
Tue, 13 Dec 2011 01:22:58 +0000 (12:22 +1100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 15 Dec 2011 15:27:23 +0000 (09:27 -0600)
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>
vl.c

diff --git a/vl.c b/vl.c
index 5372a9622a7bd2652edc08160d68a097f139782a..d51ac2ebfe8562a2e9ac08215e530aef13b085de 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -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);
 }