Skip to content

Commit 141b2d3

Browse files
ahunter6acmel
authored andcommitted
perf tools: Extend the event parser maximum error index
Extend the event parser maximum error index from 10 to 13. That allows PMU config terms of up to 10 characters to display un-truncated in the error message. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/r/1437150840-31811-17-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 0efe6b6 commit 141b2d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/perf/util/parse-events.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ static void parse_events_print_error(struct parse_events_error *err,
11681168
* Maximum error index indent, we will cut
11691169
* the event string if it's bigger.
11701170
*/
1171-
int max_err_idx = 10;
1171+
int max_err_idx = 13;
11721172

11731173
/*
11741174
* Let's be specific with the message when

0 commit comments

Comments
 (0)