qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 15/32] error-report: use error_printf() for program prefix


From: Markus Armbruster
Subject: Re: [PATCH 15/32] error-report: use error_printf() for program prefix
Date: Thu, 07 Apr 2022 07:50:43 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

marcandre.lureau@redhat.com writes:

> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> 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>
> ---
>  util/error-report.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/util/error-report.c b/util/error-report.c
> index 4ea380dd4169..3a1d4923d620 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) {

Reviewed-by: Markus Armbruster <armbru@redhat.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]