Re: [PATCH 01/38] perf tools: Use asprintf instead of malloc plussnprintf

From: Andi Kleen
Date: Wed Dec 11 2013 - 17:16:57 EST


On Wed, Dec 04, 2013 at 05:06:25PM -0300, Arnaldo Carvalho de Melo wrote:
> From: Adrian Hunter <adrian.hunter@xxxxxxxxx>
>
> The asprintf library function is equivalent to malloc plus snprintf so
> use it because it is simpler.

I used to be very fond of asprintf too, but apparently there are some
really ancient glibc versions that implement it incorrectly.
I had to remove it from mcelog at some point because of that.

No need to yank it out, but just to let you know.

-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/