diff --git a/[refs] b/[refs] index ef33ed715785..4c5a50610d9e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9ed7e1b85cd55dc46cb9410a23086bdaa2ff3eb9 +refs/heads/master: 84c104ad429c8a474b93dd374815d1c238032fa8 diff --git a/trunk/tools/perf/util/debug.c b/trunk/tools/perf/util/debug.c index 6cddff2bc970..318dab15d177 100644 --- a/trunk/tools/perf/util/debug.c +++ b/trunk/tools/perf/util/debug.c @@ -86,12 +86,10 @@ void trace_event(event_t *event) dump_printf_color(" ", color); for (j = 0; j < 15-(i & 15); j++) dump_printf_color(" ", color); - for (j = 0; j < (i & 15); j++) { - if (isprint(raw_event[i-15+j])) - dump_printf_color("%c", color, - raw_event[i-15+j]); - else - dump_printf_color(".", color); + for (j = i & ~15; j <= i; j++) { + dump_printf_color("%c", color, + isprint(raw_event[j]) ? + raw_event[j] : '.'); } dump_printf_color("\n", color); }