From 7e662f6e8d5ed87b59b6aa9100fc0fa0f72b74ab Mon Sep 17 00:00:00 2001 From: "Richard J. Knight" Date: Thu, 26 Feb 2015 07:37:56 -0600 Subject: Incorrect reading returned by Boot Count Sensor -Fixed mask to ignore bit bit 0 of uint16_t event_status returned by readSensorData. Previous mask had an extra charactor which allowed it to incorrectly pass the high order bit of the event status back to the caller. Change-Id: Iaa2962886f78b16352ff091e9aa8082b6ec4b1ca RTC:124692 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16019 Reviewed-by: WILLIAM G. HOFFA Reviewed-by: Andrew J. Geissler Tested-by: Jenkins Server Reviewed-by: Michael Baiocchi Reviewed-by: A. Patrick Williams III --- src/usr/ipmi/ipmisensor.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/usr') diff --git a/src/usr/ipmi/ipmisensor.C b/src/usr/ipmi/ipmisensor.C index 12faa9e6d..3e15e918e 100644 --- a/src/usr/ipmi/ipmisensor.C +++ b/src/usr/ipmi/ipmisensor.C @@ -326,7 +326,7 @@ namespace SENSOR // spec indicates that the high order bit should be // ignored on a read, so lets mask it off now. - o_data.event_status &= 0x7FFFF; + o_data.event_status &= 0x7FFF; } else { -- cgit v1.2.1