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: I86d194886a4dcd325364041d4c7745f4ea22fd65
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/main.cpp b/main.cpp
index cfa0de9..b34e52c 100644
--- a/main.cpp
+++ b/main.cpp
@@ -23,17 +23,18 @@
#include <ipmid/api.h>
-#include <cstdio>
#include <ipmid/api-types.hpp>
#include <ipmid/handler.hpp>
#include <ipmid/iana.hpp>
#include <ipmid/oemopenbmc.hpp>
#include <ipmid/oemrouter.hpp>
-#include <memory>
#include <phosphor-logging/log.hpp>
-#include <span>
#include <user_channel/channel_layer.hpp>
+#include <cstdio>
+#include <memory>
+#include <span>
+
namespace blobs
{
@@ -47,16 +48,15 @@
"Registering OEM:[%#08X], Cmd:[%#04X] for Blob Commands\n",
oem::obmcOemNumber, oem::Cmd::blobTransferCmd);
- ipmi::registerOemHandler(
- ipmi::prioOemBase, oem::obmcOemNumber, oem::Cmd::blobTransferCmd,
- ::ipmi::Privilege::User,
- [](ipmi::Context::ptr ctx, uint8_t cmd,
- const std::vector<uint8_t>& data) {
- // Get current IPMI channel and get the max transfer size
- // (assuming that it does not change).
- return handleBlobCommand(
- cmd, data, ipmi::getChannelMaxTransferSize(ctx->channel));
- });
+ ipmi::registerOemHandler(ipmi::prioOemBase, oem::obmcOemNumber,
+ oem::Cmd::blobTransferCmd, ::ipmi::Privilege::User,
+ [](ipmi::Context::ptr ctx, uint8_t cmd,
+ const std::vector<uint8_t>& data) {
+ // Get current IPMI channel and get the max transfer size
+ // (assuming that it does not change).
+ return handleBlobCommand(cmd, data,
+ ipmi::getChannelMaxTransferSize(ctx->channel));
+ });
/* Install handlers. */
try