commit | ffa76e59f81feee67bdbf47f4df94baf72742c0d | [log] [tgz] |
---|---|---|
author | Tom Joseph <rushtotom@gmail.com> | Tue Jan 17 15:12:32 2023 +0530 |
committer | Tom Joseph <rushtotom@gmail.com> | Tue Jan 17 15:29:26 2023 +0530 |
tree | 0d10099a8694dfe010eef6d8f360be694d9b1072 | |
parent | efe2668675e0d5f1a486e0b4147563a02796f3eb [diff] |
dbus-sdr: Revert sensor name modifications partially With commit [1] the leaf of the D-Bus object path was stripped of well known suffixes, in addition to that `_` was replaced by space. Replacing `_` with space is not needed to solve the problem statement [2]. For sensor names which are less than 16 characters, this creates expectation differences on scripts which tried to validate the ipmitool output. [1] https://github.com/openbmc/phosphor-host-ipmid/commit/d950f410b71e0ac4650519eb5bf7ea683e98684d [2] https://github.com/openbmc/intel-ipmi-oem/issues/4 Change-Id: If7028e517385ebfc1fc3541a6c23d559ad0c8d69 Signed-off-by: Tom Joseph <rushtotom@gmail.com>
diff --git a/dbus-sdr/sensorcommands.cpp b/dbus-sdr/sensorcommands.cpp index 9ccf7e7..ecb8fc2 100644 --- a/dbus-sdr/sensorcommands.cpp +++ b/dbus-sdr/sensorcommands.cpp
@@ -474,7 +474,6 @@ name.resize(FULL_RECORD_ID_STR_MAX_LENGTH); } } - std::replace(name.begin(), name.end(), '_', ' '); return name; }