Re: [Qemu-devel] [PATCH v2 32/37] bus: simplify name handling

2016-07-28 Thread Eric Blake
On 07/28/2016 08:38 AM, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > Simplify a bit the code by using g_strdup_printf() and store it in a > non-const value so casting is no longer needed, and ownership is > clearer. > > Signed-off-by: Marc-André Lureau > --- > hw/core/bus.c

[Qemu-devel] [PATCH v2 32/37] bus: simplify name handling

2016-07-28 Thread marcandre . lureau
From: Marc-André Lureau Simplify a bit the code by using g_strdup_printf() and store it in a non-const value so casting is no longer needed, and ownership is clearer. Signed-off-by: Marc-André Lureau --- hw/core/bus.c | 21 ++--- include/hw/qdev-core.h | 2 +- 2 files