summaryrefslogtreecommitdiff
path: root/qemu-error.c
diff options
context:
space:
mode:
authormichael@ozlabs.org <michael@ozlabs.org>2011-12-13 12:22:57 +1100
committerAnthony Liguori <aliguori@us.ibm.com>2011-12-15 09:27:22 -0600
commit7636a470a8ccd99cfb2d89eae9b6720be5a203c4 (patch)
treece86e55456cda85084c86f1701d2aa1405f40daf /qemu-error.c
parent1ecf47bf0a091700e45f1b7d1f5ad85abc0acd22 (diff)
downloadqemu-7636a470a8ccd99cfb2d89eae9b6720be5a203c4.tar.gz
qemu-7636a470a8ccd99cfb2d89eae9b6720be5a203c4.tar.bz2
qemu-7636a470a8ccd99cfb2d89eae9b6720be5a203c4.zip
error: Add an accessor for progname
We'd like to get the progname for help output, so add an accessor. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Reviewed-by: Andreas F=E4rber <afaerber@suse.de> Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-error.c')
-rw-r--r--qemu-error.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/qemu-error.c b/qemu-error.c
index 4b20d283a2..7cd5ffe1e9 100644
--- a/qemu-error.c
+++ b/qemu-error.c
@@ -157,6 +157,11 @@ void error_set_progname(const char *argv0)
progname = p ? p + 1 : argv0;
}
+const char *error_get_progname(void)
+{
+ return progname;
+}
+
/*
* Print current location to current monitor if we have one, else to stderr.
*/