qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] trace/simple: Replace asprintf by g_strdup_prin


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH] trace/simple: Replace asprintf by g_strdup_printf
Date: Tue, 14 Aug 2012 13:30:15 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Aug 13, 2012 at 09:51:16PM +0200, Stefan Weil wrote:
> asprintf is not available for all hosts. g_strdup_printf is
> more portable and simplifies the code because if does not
> need error handling.
> 
> The static variable does not need an explicit assignment to be NULL.
> 
> Cc: Stefan Hajnoczi <address@hidden>
> Signed-off-by: Stefan Weil <address@hidden>
> ---
>  trace/simple.c |   14 ++++----------
>  1 files changed, 4 insertions(+), 10 deletions(-)

Thanks, applied to the tracing tree:
https://github.com/stefanha/qemu/commits/tracing

Stefan



reply via email to

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