diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2014-07-04 14:43:48 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-07-07 16:55:24 -0300 |
commit | d400a68d1f1e7a1fc7c5caf9024d4e67b218558d (patch) | |
tree | cba65b9040c912b23d467e9ddf79b23b35fa0c27 /tools/perf/builtin-trace.c | |
parent | f8d9ccde2be4c24bfb8787af36a59a981b00a02d (diff) | |
download | lwn-d400a68d1f1e7a1fc7c5caf9024d4e67b218558d.tar.gz lwn-d400a68d1f1e7a1fc7c5caf9024d4e67b218558d.zip |
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>
Diffstat (limited to 'tools/perf/builtin-trace.c')
0 files changed, 0 insertions, 0 deletions