[Qemu-devel] [PATCH 1/2] error: Add an accessor for progname

2011-12-12 Thread mich...@ellerman.id.au
We'd like to get the progname for help output, so add an accessor. Signed-off-by: Michael Ellerman --- qemu-error.c |5 + qemu-error.h |1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/qemu-error.c b/qemu-error.c index 4b20d28..7cd5ffe 100644 --- a/qemu-error.c +++

[Qemu-devel] [PATCH 2/2] vl.c: Print the actual program name in help output

2011-12-12 Thread mich...@ellerman.id.au
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, origi