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

2012-08-14 Thread Stefan Hajnoczi
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 Haj

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

2012-08-13 Thread Stefan Weil
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 Signed-off-by: Stefan Weil --- trace/simple.c | 14 -