diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2023-05-10 15:51:34 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2023-05-11 00:18:24 +0300 |
commit | 89492a157c9cf972b342421e24d41fd382510251 (patch) | |
tree | 64ed25f427f1ab1981f8c2bdcbfbc7fde5db80e9 /redfish-core/lib/power.hpp | |
parent | cddbf3df0ea0b78521b62f30f2ce764c6619018a (diff) | |
download | bmcweb-89492a157c9cf972b342421e24d41fd382510251.tar.xz |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: I75f89d2959b0f1338c20d72ad669fbdc1d720835
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'redfish-core/lib/power.hpp')
-rw-r--r-- | redfish-core/lib/power.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/redfish-core/lib/power.hpp b/redfish-core/lib/power.hpp index 5d7bbb7d2d..a0eadf56f9 100644 --- a/redfish-core/lib/power.hpp +++ b/redfish-core/lib/power.hpp @@ -121,7 +121,6 @@ inline void setPowerCapOverride( } inline void requestRoutesPower(App& app) { - BMCWEB_ROUTE(app, "/redfish/v1/Chassis/<str>/Power/") .privileges(redfish::privileges::getPower) .methods(boost::beast::http::verb::get)( @@ -178,8 +177,8 @@ inline void requestRoutesPower(App& app) len = end - (lastPos + 1); } - std::string interfaceChassisName = - chassis.substr(lastPos + 1, len); + std::string interfaceChassisName = chassis.substr(lastPos + 1, + len); if (interfaceChassisName == sensorAsyncResp->chassisId) { found = true; |