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: I59041b73cc8b15c2a3800911540e1a10011f6150
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/writefrudata.cpp b/writefrudata.cpp
index 5e698c7..1394b38 100644
--- a/writefrudata.cpp
+++ b/writefrudata.cpp
@@ -7,6 +7,9 @@
#include <ipmid/api.h>
#include <unistd.h>
+#include <phosphor-logging/log.hpp>
+#include <sdbusplus/bus.hpp>
+
#include <algorithm>
#include <cstdio>
#include <cstring>
@@ -15,8 +18,6 @@
#include <iostream>
#include <map>
#include <memory>
-#include <phosphor-logging/log.hpp>
-#include <sdbusplus/bus.hpp>
#include <sstream>
#include <vector>
@@ -67,7 +68,6 @@
std::string getFRUValue(const std::string& section, const std::string& key,
const std::string& delimiter, IPMIFruInfo& fruData)
{
-
auto minIndexValue = 0;
auto maxIndexValue = 0;
std::string fruValue = "";
@@ -130,10 +130,10 @@
auto getService(sdbusplus::bus_t& bus, const std::string& intf,
const std::string& path)
{
- auto mapperCall =
- bus.new_method_call("xyz.openbmc_project.ObjectMapper",
- "/xyz/openbmc_project/object_mapper",
- "xyz.openbmc_project.ObjectMapper", "GetObject");
+ auto mapperCall = bus.new_method_call("xyz.openbmc_project.ObjectMapper",
+ "/xyz/openbmc_project/object_mapper",
+ "xyz.openbmc_project.ObjectMapper",
+ "GetObject");
mapperCall.append(path);
mapperCall.append(std::vector<std::string>({intf}));
@@ -717,7 +717,6 @@
// inventory.
if (!(fruAreaVec.empty()))
{
-
#ifdef __IPMI_DEBUG__
std::printf("\n SIZE of vector is : [%d] \n", fruAreaVec.size());
#endif