lkml.org 
[lkml]   [2015]   [Jul]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH V8 16/25] perf tools: Extend the event parser maximum error index
    Date
    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>
    ---
    tools/perf/util/parse-events.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c
    index a71eeb279ed2..dbe43acb5fe0 100644
    --- a/tools/perf/util/parse-events.c
    +++ b/tools/perf/util/parse-events.c
    @@ -1105,7 +1105,7 @@ static void parse_events_print_error(struct parse_events_error *err,
    * Maximum error index indent, we will cut
    * the event string if it's bigger.
    */
    - int max_err_idx = 10;
    + int max_err_idx = 13;

    /*
    * Let's be specific with the message when
    --
    1.9.1


    \
     
     \ /
      Last update: 2015-07-17 19:01    [W:4.116 / U:0.152 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site