aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/util/data.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2014-07-04 14:43:48 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2014-07-07 16:55:24 -0300
commitd400a68d1f1e7a1fc7c5caf9024d4e67b218558d (patch)
treecba65b9040c912b23d467e9ddf79b23b35fa0c27 /tools/perf/util/data.c
parentperf tools: Allow to use cpuinfo on s390 (diff)
downloadwireguard-linux-d400a68d1f1e7a1fc7c5caf9024d4e67b218558d.tar.xz
wireguard-linux-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/util/data.c')
0 files changed, 0 insertions, 0 deletions