diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-06-15 20:11:41 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-17 19:23:53 +0200 |
commit | 5aa75a0fd4bc6402899e06fdb853cab024d65055 (patch) | |
tree | 939b667529badf20fe88720fb9aea3a1ce17215c /tools/perf/builtin-report.c | |
parent | 60f916dee612130c9977a8edd4abee98334202ba (diff) | |
download | kernel-crypto-5aa75a0fd4bc6402899e06fdb853cab024d65055.tar.gz kernel-crypto-5aa75a0fd4bc6402899e06fdb853cab024d65055.tar.xz kernel-crypto-5aa75a0fd4bc6402899e06fdb853cab024d65055.zip |
perf_counter tools: Replace isprint() with issane()
The Git utils came with a ctype replacement that doesn't provide
isprint(). Add a replacement.
Solves a build bug on certain distros.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index cd74b2e58ad..707f60ce32f 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c @@ -1266,7 +1266,7 @@ static void trace_event(event_t *event) for (j = 0; j < 15-(i & 15); j++) cdprintf(" "); for (j = 0; j < (i & 15); j++) { - if (isprint(raw_event[i-15+j])) + if (issane(raw_event[i-15+j])) cdprintf("%c", raw_event[i-15+j]); else cdprintf("."); |