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>
This commit is contained in:
committed by
Ingo Molnar
parent
60f916dee6
commit
5aa75a0fd4
@@ -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(".");
|
||||
|
Reference in New Issue
Block a user