aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Luck <tony.luck@intel.com>2021-07-20 13:19:28 -0700
committerAndi Kleen <ak@linux.intel.com>2021-07-20 15:01:54 -0700
commitc133a744e9ee6a2f40cbec4cfb0182d3ed1a792a (patch)
tree70e598861bceb913af713ea6f02a02402f8d421a
parent099c9ab80e721f8ce29ae03bfa93f67135790154 (diff)
downloadmcelog-c133a744e9ee6a2f40cbec4cfb0182d3ed1a792a.tar.gz
mcelog: Fix typo/thinko in yellow cache changev178
Somehow there was an "off-by-one-source-line" error and added "1" to the *type" of the cache error insted of to the *level* Fixes: 570893f878da mcelog: Fix issues with "yellow" cache offlining Signed-off-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Andi Kleen <ak@linux.intel.com>
-rw-r--r--p4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/p4.c b/p4.c
index e4ee3d8..8612e4a 100644
--- a/p4.c
+++ b/p4.c
@@ -191,8 +191,8 @@ static int decode_mca(u64 status, u64 misc, u64 track, int cpu, int *ismemerr, i
if (track == 2)
run_yellow_trigger(cpu, typenum, levelnum, type, level, socket);
} else if (test_prefix(8, mca)) {
- unsigned typenum = ((mca & CACHE_TT_MASK) >> CACHE_TT_SHIFT) + 1;
- unsigned levelnum = (mca & CACHE_LL_MASK) >> CACHE_LL_SHIFT;
+ unsigned typenum = (mca & CACHE_TT_MASK) >> CACHE_TT_SHIFT;
+ unsigned levelnum = ((mca & CACHE_LL_MASK) >> CACHE_LL_SHIFT) + 1;
char *type = get_TT_str(typenum);
char *level = get_LL_str(levelnum);
Wprintf("%s CACHE %s %s Error\n", type, level,