mirror of
https://git.proxmox.com/git/qemu
synced 2025-06-15 14:32:03 +00:00
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 be995c2764
("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>
This commit is contained in:
parent
7636a470a8
commit
15d37e709f
2
vl.c
2
vl.c
@ -1513,7 +1513,7 @@ static void help(int exitcode)
|
|||||||
"ctrl-alt toggle mouse and keyboard grab\n"
|
"ctrl-alt toggle mouse and keyboard grab\n"
|
||||||
"\n"
|
"\n"
|
||||||
"When using -nographic, press 'ctrl-a h' to get some help.\n",
|
"When using -nographic, press 'ctrl-a h' to get some help.\n",
|
||||||
"qemu",
|
error_get_progname(),
|
||||||
options_help);
|
options_help);
|
||||||
exit(exitcode);
|
exit(exitcode);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user