diff options
Diffstat (limited to 'redfish-core/lib/power.hpp')
-rw-r--r-- | redfish-core/lib/power.hpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/redfish-core/lib/power.hpp b/redfish-core/lib/power.hpp index f9063b7dff..e7094ad05e 100644 --- a/redfish-core/lib/power.hpp +++ b/redfish-core/lib/power.hpp @@ -39,7 +39,7 @@ inline void setPowerCapOverride( const std::optional<std::string>& chassisPath) mutable { if (!chassisPath) { - BMCWEB_LOG_WARNING << "Don't find valid chassis path "; + BMCWEB_LOG_WARNING("Don't find valid chassis path "); messages::resourceNotFound(sensorsAsyncResp->asyncResp->res, "Chassis", sensorsAsyncResp->chassisId); return; @@ -47,7 +47,7 @@ inline void setPowerCapOverride( if (powerControlCollections.size() != 1) { - BMCWEB_LOG_WARNING << "Don't support multiple hosts at present "; + BMCWEB_LOG_WARNING("Don't support multiple hosts at present "); messages::resourceNotFound(sensorsAsyncResp->asyncResp->res, "Power", "PowerControl"); return; @@ -84,8 +84,8 @@ inline void setPowerCapOverride( if (ec) { messages::internalError(sensorsAsyncResp->asyncResp->res); - BMCWEB_LOG_ERROR << "powerCapEnable Get handler: Dbus error " - << ec; + BMCWEB_LOG_ERROR("powerCapEnable Get handler: Dbus error {}", + ec); return; } if (!powerCapEnable) @@ -93,7 +93,7 @@ inline void setPowerCapOverride( messages::actionNotSupported( sensorsAsyncResp->asyncResp->res, "Setting LimitInWatts when PowerLimit feature is disabled"); - BMCWEB_LOG_ERROR << "PowerLimit feature is disabled "; + BMCWEB_LOG_ERROR("PowerLimit feature is disabled "); return; } @@ -104,7 +104,7 @@ inline void setPowerCapOverride( [sensorsAsyncResp](const boost::system::error_code& ec2) { if (ec2) { - BMCWEB_LOG_DEBUG << "Power Limit Set: Dbus error: " << ec2; + BMCWEB_LOG_DEBUG("Power Limit Set: Dbus error: {}", ec2); messages::internalError(sensorsAsyncResp->asyncResp->res); return; } @@ -148,8 +148,8 @@ inline void requestRoutesPower(App& app) const Mapper& chassisPaths) { if (ec2) { - BMCWEB_LOG_ERROR - << "Power Limit GetSubTreePaths handler Dbus error " << ec2; + BMCWEB_LOG_ERROR( + "Power Limit GetSubTreePaths handler Dbus error {}", ec2); return; } @@ -186,8 +186,8 @@ inline void requestRoutesPower(App& app) if (!found) { - BMCWEB_LOG_DEBUG << "Power Limit not present for " - << sensorAsyncResp->chassisId; + BMCWEB_LOG_DEBUG("Power Limit not present for {}", + sensorAsyncResp->chassisId); return; } @@ -198,8 +198,8 @@ inline void requestRoutesPower(App& app) if (ec) { messages::internalError(sensorAsyncResp->asyncResp->res); - BMCWEB_LOG_ERROR - << "Power Limit GetAll handler: Dbus error " << ec; + BMCWEB_LOG_ERROR( + "Power Limit GetAll handler: Dbus error {}", ec); return; } |