summaryrefslogtreecommitdiffstats
path: root/occ_status.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'occ_status.cpp')
-rw-r--r--occ_status.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/occ_status.cpp b/occ_status.cpp
index c2c4bae..0782f87 100644
--- a/occ_status.cpp
+++ b/occ_status.cpp
@@ -95,7 +95,8 @@ void Status::resetOCC()
method.append(convertForMessage(Control::Host::Command::OCCReset).c_str());
// OCC Sensor ID for callout reasons
- method.append(sdbusplus::message::variant<uint8_t>(sensorMap.at(instance)));
+ method.append(sdbusplus::message::variant<uint8_t>(
+ std::get<0>(sensorMap.at(instance))));
bus.call_noreply(method);
return;
}
@@ -122,9 +123,9 @@ void Status::hostControlEvent(sdbusplus::message::message& msg)
Control::Host::Command::OCCReset)
{
// Must be a Timeout. Log an Error trace
- log<level::ERR>("Error resetting the OCC.",
- entry("PATH=%s", path.c_str()),
- entry("SENSORID=0x%X", sensorMap.at(instance)));
+ log<level::ERR>(
+ "Error resetting the OCC.", entry("PATH=%s", path.c_str()),
+ entry("SENSORID=0x%X", std::get<0>(sensorMap.at(instance))));
}
}
return;
OpenPOWER on IntegriCloud