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/include/event_service_manager.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/include/event_service_manager.hpp')
-rw-r--r-- | redfish-core/include/event_service_manager.hpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/redfish-core/include/event_service_manager.hpp b/redfish-core/include/event_service_manager.hpp index 0b87555ec0..3fc4133e6b 100644 --- a/redfish-core/include/event_service_manager.hpp +++ b/redfish-core/include/event_service_manager.hpp @@ -245,8 +245,8 @@ inline int formatEventLogEntry(const std::string& logEntryID, return -1; } - std::string msg = - redfish::registries::fillMessageArgs(messageArgs, message->message); + std::string msg = redfish::registries::fillMessageArgs(messageArgs, + message->message); if (msg.empty()) { return -1; @@ -440,8 +440,8 @@ class Subscription : public persistent_data::UserSubscription msg["Name"] = "Event Log"; msg["Events"] = logEntryArray; - std::string strMsg = - msg.dump(2, ' ', true, nlohmann::json::error_handler_t::replace); + std::string strMsg = msg.dump(2, ' ', true, + nlohmann::json::error_handler_t::replace); return this->sendEvent(strMsg); } @@ -509,8 +509,8 @@ class Subscription : public persistent_data::UserSubscription msg["Name"] = "Event Log"; msg["Events"] = logEntryArray; - std::string strMsg = - msg.dump(2, ' ', true, nlohmann::json::error_handler_t::replace); + std::string strMsg = msg.dump(2, ' ', true, + nlohmann::json::error_handler_t::replace); this->sendEvent(strMsg); } #endif @@ -549,8 +549,8 @@ class Subscription : public persistent_data::UserSubscription msg["Context"] = customText; } - std::string strMsg = - msg.dump(2, ' ', true, nlohmann::json::error_handler_t::replace); + std::string strMsg = msg.dump(2, ' ', true, + nlohmann::json::error_handler_t::replace); this->sendEvent(strMsg); } @@ -883,7 +883,6 @@ class EventServiceManager std::string addSubscription(const std::shared_ptr<Subscription>& subValue, const bool updateFile = true) { - std::uniform_int_distribution<uint32_t> dist(0); bmcweb::OpenSSLGenerator gen; @@ -1317,8 +1316,8 @@ class EventServiceManager } // Watch redfish event log file for modifications. - fileWatchDesc = - inotify_add_watch(inotifyFd, redfishEventLogFile, IN_MODIFY); + fileWatchDesc = inotify_add_watch(inotifyFd, redfishEventLogFile, + IN_MODIFY); if (fileWatchDesc == -1) { BMCWEB_LOG_ERROR |