]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Fix bug in isupper() and islower()
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Fri, 29 Mar 2013 19:14:43 +0000 (12:14 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 28 May 2013 13:23:51 +0000 (16:23 +0300)
commit16dde896bcaf01f173b30b794da3ab764576de70
tree138fddcf932a7efdcbe0aedc5ed950617b1b91cf
parent5c6e9d5c70ae6cb8b5c96563072abd9dbb944ed2
perf tools: Fix bug in isupper() and islower()

One of the reasons 'perf test' is failing on Power appears to be due to
a bug in isupper().

isupper(c) and islower(c) should be checking 'c' against the mask 0x20.
Instead they are checking sane_ctype[c] which causes isupper() to be
true for lower case letters.

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/20130329192950.GA9312@us.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/util.h