commit | d400a68d1f1e7a1fc7c5caf9024d4e67b218558d | [log] [tgz] |
---|---|---|
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | Fri Jul 04 14:43:48 2014 +0300 |
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | Mon Jul 07 16:55:24 2014 -0300 |
tree | cba65b9040c912b23d467e9ddf79b23b35fa0c27 | |
parent | f8d9ccde2be4c24bfb8787af36a59a981b00a02d [diff] |
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 <andriy.shevchenko@linux.intel.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Link: http://lkml.kernel.org/r/1404474229-15272-1-git-send-email-andriy.shevchenko@linux.intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>