mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
mca_log: add missing breaks when handling thresholds
Per the "Intel® 64 and IA-32 Architectures Software Developer’s Manual
Combined Volumes: Vol. 3B 17-7", the Green and Yellow threshold
indicators are mutually exclusive. Add the missing `break` statements so
they're treated that way.
MFC after: 1 week
Reported by: Coverity
Differential Revision: https://reviews.freebsd.org/D48722
(cherry picked from commit 36d7d2044b)
This commit is contained in:
parent
c08ec13bcc
commit
d6552ebf26
1 changed files with 2 additions and 0 deletions
|
|
@ -453,8 +453,10 @@ mca_log(const struct mca_record *rec)
|
|||
switch ((rec->mr_status & MC_STATUS_TES_STATUS) >> 53) {
|
||||
case 0x1:
|
||||
printf("(Green) ");
|
||||
break;
|
||||
case 0x2:
|
||||
printf("(Yellow) ");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue