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>
This commit is contained in:
Marc-André Lureau 2022-03-23 19:57:26 +04:00 committed by Paolo Bonzini
parent 15002f60f7
commit 11fd78dc07
1 changed files with 1 additions and 1 deletions

View File

@ -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) {