From: Namhyung Kim Date: Thu, 23 Aug 2012 07:37:00 +0000 (+0900) Subject: tools lib traceevent: Fix off-by-one bug in pevent_strerror() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~97^2~25^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f63fe79fa0b1362e8ea1c1e4996cf70d14917b02;p=pandora-kernel.git tools lib traceevent: Fix off-by-one bug in pevent_strerror() As pevent_errno is defined using PEVENT_ERRORS which uses _PE macro magic, the first errno is bigger than __PEVENT_ERRNO_START by 1. So we need to subtract the 1 also when calculating the index of the error strings. Signed-off-by: Namhyung Kim Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Steven Rostedt Link: http://lkml.kernel.org/r/1345707420-21767-1-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed