aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2022-03-23 19:57:26 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2022-04-06 14:31:43 +0200
commit11fd78dc074a6abed7514a37cbb77f440ab8f410 (patch)
treec0b2502cfd66118c48cb3b3de41401046303a38f
parent15002f60f7923aebd6cac73f7da1c493c75c7fec (diff)
downloadqemu-11fd78dc074a6abed7514a37cbb77f440ab8f410.zip
qemu-11fd78dc074a6abed7514a37cbb77f440ab8f410.tar.gz
qemu-11fd78dc074a6abed7514a37cbb77f440ab8f410.tar.bz2
error-report: use error_printf() for program prefix
For consistency with other calls in the function, let's use error_printf(). (it will use stderr since !monitor_cur()) Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20220323155743.1585078-16-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--util/error-report.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/error-report.c b/util/error-report.c
index 71ce3ee..d9d3ac3 100644
--- a/util/error-report.c
+++ b/util/error-report.c
@@ -156,7 +156,7 @@ static void print_loc(void)
const char *const *argp;
if (!monitor_cur() && g_get_prgname()) {
- fprintf(stderr, "%s:", g_get_prgname());
+ error_printf("%s:", g_get_prgname());
sep = " ";
}
switch (cur_loc->kind) {