diff options
author | Tony Luck <tony.luck@intel.com> | 2021-07-20 13:19:28 -0700 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2021-07-20 15:01:54 -0700 |
commit | c133a744e9ee6a2f40cbec4cfb0182d3ed1a792a (patch) | |
tree | 70e598861bceb913af713ea6f02a02402f8d421a | |
parent | 099c9ab80e721f8ce29ae03bfa93f67135790154 (diff) | |
download | mcelog-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |