diff options
author | Robert Lippert <rlippert@google.com> | 2016-12-15 14:50:28 -0800 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-01-04 21:07:22 -0500 |
commit | 1c93d08e53678c1767a4b016dee32380aedd514a (patch) | |
tree | 79fee62ef5f43cf26a725bba6b9fd656bf207a5d /src/usr | |
parent | 01ac24e475330b548afb7cba7c3d78853f3f15d4 (diff) | |
download | talos-hostboot-1c93d08e53678c1767a4b016dee32380aedd514a.tar.gz talos-hostboot-1c93d08e53678c1767a4b016dee32380aedd514a.zip |
generate errl for missing IPMI sensor number instead of assert
Change-Id: I23310799e35e8d58ff23805ee988d4ff8f3fa5e3
Signed-off-by: Robert Lippert <rlippert@google.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33980
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/ipmi/ipmisensor.C | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/usr/ipmi/ipmisensor.C b/src/usr/ipmi/ipmisensor.C index d4ef0e67c..4b4a8f7f6 100644 --- a/src/usr/ipmi/ipmisensor.C +++ b/src/usr/ipmi/ipmisensor.C @@ -6,6 +6,7 @@ /* OpenPOWER HostBoot Project */ /* */ /* Contributors Listed Below - COPYRIGHT 2014,2016 */ +/* [+] Google Inc. */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -222,8 +223,25 @@ namespace SENSOR "sendSetSensorReading()", iv_name, TARGETING::get_huid( iv_target )); - assert(false); - + /*@ + * @errortype ERRL_SEV_UNRECOVERABLE + * @moduleid IPMI::MOD_IPMISENSOR + * @reasoncode IPMI::RC_SENSOR_NOT_FOUND + * @userdata1 Returned sensor number. + * @userdata2 bytes [0-3]sensor name + * bytes [4-7]HUID of target. + * @devdesc Requested sensor attribute not found. + */ + l_err = new ERRORLOG::ErrlEntry( + ERRORLOG::ERRL_SEV_UNRECOVERABLE, + IPMI::MOD_IPMISENSOR, + IPMI::RC_SENSOR_NOT_FOUND, + iv_msg->iv_sensor_number, + TWO_UINT32_TO_UINT64( iv_name, + TARGETING::get_huid( iv_target ) ), + true); + + delete iv_msg; } return l_err; |