summaryrefslogtreecommitdiffstats
path: root/ipmisensor.C
diff options
context:
space:
mode:
authorChris Austen <austenc@us.ibm.com>2015-10-21 20:32:19 -0500
committerChris Austen <austenc@us.ibm.com>2015-10-21 20:32:19 -0500
commit5a9f0b40ceb3ac0cd6b9d273bffa956e9509cb48 (patch)
tree95f8dcf20499cb20cf16ef7a327a9a55c6d92fcb /ipmisensor.C
parent12ba3c3fd2c30a2e96c96b83693aa35f60cff9a4 (diff)
downloadphosphor-host-ipmid-5a9f0b40ceb3ac0cd6b9d273bffa956e9509cb48.tar.gz
phosphor-host-ipmid-5a9f0b40ceb3ac0cd6b9d273bffa956e9509cb48.zip
Sensor5 hanging system IPL
Diffstat (limited to 'ipmisensor.C')
-rw-r--r--ipmisensor.C12
1 files changed, 6 insertions, 6 deletions
diff --git a/ipmisensor.C b/ipmisensor.C
index 568f4a4..1a40411 100644
--- a/ipmisensor.C
+++ b/ipmisensor.C
@@ -85,14 +85,14 @@ char *getfw02string(uint8_t b) {
int i = 0;
event_data_t *p = g_fwprogress02h;
- do {
-
- if ((p+i)->data == b)
+ while(p->data != 0xFF) {
+ if (p->data == b) {
break;
- i++;
- } while ((p+i)->data != 0xFF);
+ }
+ p++;
+ }
- return (p+i)->text;
+ return p->text;
}
// The fw progress sensor contains some additional information that needs to be processed
// prior to calling the dbus code.
OpenPOWER on IntegriCloud