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: If4790d4928efc3e6690ca090aa79f0c7737c3683
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/dump_offload.cpp b/dump_offload.cpp
index 7795bb2..c590614 100644
--- a/dump_offload.cpp
+++ b/dump_offload.cpp
@@ -76,8 +76,8 @@
fmt::format("writeOnUnixSocket: write() failed, errno({})",
errno)
.c_str());
- std::string msg =
- "write() on socket failed " + std::string(strerror(errno));
+ std::string msg = "write() on socket failed " +
+ std::string(strerror(errno));
throw std::runtime_error(msg);
}
}
@@ -102,8 +102,8 @@
sizeof(socketAddr.sun_path))
{
log<level::ERR>("UNIX socket path too long");
- std::string msg =
- "UNIX socket path is too long " + std::string(strerror(errno));
+ std::string msg = "UNIX socket path is too long " +
+ std::string(strerror(errno));
throw std::length_error(msg);
}
strncpy(socketAddr.sun_path, sockPath.c_str(),
@@ -148,7 +148,6 @@
try
{
-
CustomFd unixSocket = socketInit(writePath);
fd_set readFD;
@@ -179,8 +178,8 @@
fmt::format("accept() failed, errno({}), DUMP_ID({})",
errno, dumpId)
.c_str());
- std::string msg =
- "accept() failed " + std::string(strerror(errno));
+ std::string msg = "accept() failed " +
+ std::string(strerror(errno));
throw std::runtime_error(msg);
}