From: Andy Shevchenko Date: Fri, 4 Jul 2014 11:43:48 +0000 (+0300) Subject: perf tools: Convert open coded equivalents to asprintf() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~178^2~7^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d400a68d1f1e7a1fc7c5caf9024d4e67b218558d;p=pandora-kernel.git perf tools: Convert open coded equivalents to asprintf() The following snippet V = malloc(S); if (!V) { } sprintf(V, ...) Can be easily changed to a one line: if (asprintf(&V, ...) < 0) { } Signed-off-by: Andy Shevchenko Cc: Adrian Hunter Link: http://lkml.kernel.org/r/1404474229-15272-1-git-send-email-andriy.shevchenko@linux.intel.com Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed