diff options
| author | Andy Shevchenko <[email protected]> | 2014-07-04 11:43:48 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2014-07-07 19:55:24 +0000 |
| commit | d400a68d1f1e7a1fc7c5caf9024d4e67b218558d (patch) | |
| tree | cba65b9040c912b23d467e9ddf79b23b35fa0c27 /tools/perf/scripts/python/sched-migration.py | |
| parent | perf tools: Allow to use cpuinfo on s390 (diff) | |
| download | kernel-d400a68d1f1e7a1fc7c5caf9024d4e67b218558d.tar.gz kernel-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 <[email protected]>
Cc: Adrian Hunter <[email protected]>
Link: http://lkml.kernel.org/r/1404474229-15272-1-git-send-email-andriy.shevchenko@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions
