commit | 7a3ede57def39d785d4983c9d001e2cbf971392c | [log] [tgz] |
---|---|---|
author | Lakshmi Yadlapati <lakshmiy@us.ibm.com> | Fri Nov 18 13:26:17 2022 -0600 |
committer | Lakshmi Yadlapati <lakshmiy@us.ibm.com> | Tue Nov 22 14:35:14 2022 -0600 |
tree | d16ea92a6d6b5364794656d1be552f30a3a13e8b | |
parent | b0820142ebfbbcd0cf305b19913d90b5cf3d7709 [diff] |
Convert ServiceProviderNotify to enum Converted ServiceProviderNotify to an enum. Supported options are - "NotSupported", "Notify" and "Inhibit". Other changes are at the links below. https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/47683 https://gerrit.openbmc.org/c/openbmc/bmcweb/+/46886 Signed-off-by: Lakshmi Yadlapati <lakshmiy@us.ibm.com> Change-Id: I673f66a3f854683e32f2282abd85f50d630ec884
diff --git a/extensions/openpower-pels/manager.cpp b/extensions/openpower-pels/manager.cpp index 68053b0..be89bb1 100644 --- a/extensions/openpower-pels/manager.cpp +++ b/extensions/openpower-pels/manager.cpp
@@ -899,8 +899,14 @@ auto entry = _logManager.entries.find(obmcLogID); if (entry != _logManager.entries.end()) { - entry->second->serviceProviderNotify( - attr.actionFlags.test(callHomeFlagBit), true); + if (attr.actionFlags.test(callHomeFlagBit)) + { + entry->second->serviceProviderNotify(Entry::Notify::Notify); + } + else + { + entry->second->serviceProviderNotify(Entry::Notify::Inhibit); + } } } }