]> git.baikalelectronics.ru Git - kernel.git/commit
perf help: Fix a bug during strstart() conversion
authorNamhyung Kim <namhyung@kernel.org>
Tue, 14 Nov 2017 00:15:42 +0000 (09:15 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 28 Nov 2017 17:21:18 +0000 (14:21 -0300)
commit2474d9842bcc2602a2bedfce5b70200236f0f158
tree7e55a23a584cfc78c4ce18eb1ed74535b8a9da0a
parent1e05aa6c94d47012ca2f3bf8d20cc0293e50bae3
perf help: Fix a bug during strstart() conversion

The commit a07cf3db29a0 changed prefixcmp() to strstart() but missed to
change the return value in some place.  It makes perf help print
annoying output even for sane config items like below:

  $ perf help
  '.root': unsupported man viewer sub key.
  ...

Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Tested-by: Taeung Song <treeze.taeung@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Sihyeon Jang <uneedsihyeon@gmail.com>
Cc: kernel-team@lge.com
Link: http://lkml.kernel.org/r/20171114001542.GA16464@sejong
Fixes: a07cf3db29a0 ("tools include: Adopt strstarts() from the kernel")
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-help.c