aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@xilinx.com>2017-07-12 06:57:31 -0700
committerMarkus Armbruster <armbru@redhat.com>2017-07-13 13:46:53 +0200
commitbeeb175c0db29a4be13625c3e53cf674c3be9267 (patch)
tree7810da7aa62e3255e1d1504a982346e6b2c54e62 /util
parente79ea67a9785a5da4d1889b6e2bb71d03e916add (diff)
downloadqemu-beeb175c0db29a4be13625c3e53cf674c3be9267.zip
qemu-beeb175c0db29a4be13625c3e53cf674c3be9267.tar.gz
qemu-beeb175c0db29a4be13625c3e53cf674c3be9267.tar.bz2
util/qemu-error: Rename error_print_loc() to be more generic
Rename the error_print_loc() function in preparation for using it to print warnings as well. Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <661b215695db878a0aef8401b506fb3da50e981a.1499866456.git.alistair.francis@xilinx.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'util')
-rw-r--r--util/qemu-error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/qemu-error.c b/util/qemu-error.c
index b331f8f..1c5e35e 100644
--- a/util/qemu-error.c
+++ b/util/qemu-error.c
@@ -146,7 +146,7 @@ const char *error_get_progname(void)
/*
* Print current location to current monitor if we have one, else to stderr.
*/
-static void error_print_loc(void)
+static void print_loc(void)
{
const char *sep = "";
int i;
@@ -197,7 +197,7 @@ void error_vreport(const char *fmt, va_list ap)
g_free(timestr);
}
- error_print_loc();
+ print_loc();
error_vprintf(fmt, ap);
error_printf("\n");
}