Re: [Qemu-devel] [PATCH 1/2] avoid asprintf (not available on mingw64)

2012-08-12 Thread Gerd Hoffmann
On 08/10/12 16:18, Markus Armbruster wrote: >> -if (asprintf(&name, "%s-msix", dev->name) == -1) { > > What about g_strdup_printf()? Ah, nice. Didn't know glib has this. cheers, Gerd

Re: [Qemu-devel] [PATCH 1/2] avoid asprintf (not available on mingw64)

2012-08-12 Thread Blue Swirl
On Fri, Aug 10, 2012 at 2:18 PM, Markus Armbruster wrote: > Gerd Hoffmann writes: > >> Signed-off-by: Gerd Hoffmann >> --- >> hw/msix.c |5 ++--- >> 1 files changed, 2 insertions(+), 3 deletions(-) >> >> diff --git a/hw/msix.c b/hw/msix.c >> index 800fc32..04345f2 100644 >> --- a/hw/msix.c

Re: [Qemu-devel] [PATCH 1/2] avoid asprintf (not available on mingw64)

2012-08-10 Thread Markus Armbruster
Gerd Hoffmann writes: > Signed-off-by: Gerd Hoffmann > --- > hw/msix.c |5 ++--- > 1 files changed, 2 insertions(+), 3 deletions(-) > > diff --git a/hw/msix.c b/hw/msix.c > index 800fc32..04345f2 100644 > --- a/hw/msix.c > +++ b/hw/msix.c > @@ -307,9 +307,8 @@ int msix_init_exclusive_bar(PC