Skip to content

Commit b8fa2f2

Browse files
committed
revert NLs
1 parent 2e4ac06 commit b8fa2f2

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

src/cli/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ int main(const int argc, const char** const argv)
118118
const auto daemon = ocvsmd::sdk::Daemon::make(memory, executor);
119119
if (!daemon)
120120
{
121-
spdlog::critical("Failed to create daemon.\n");
121+
spdlog::critical("Failed to create daemon.");
122122
std::cerr << "Failed to create daemon.";
123123
return EXIT_FAILURE;
124124
}
@@ -150,7 +150,7 @@ int main(const int argc, const char** const argv)
150150
spdlog::critical("Unhandled exception: {}", ex.what());
151151
result = EXIT_FAILURE;
152152
}
153-
spdlog::info("OCVSMD client terminated.\n");
153+
spdlog::info("OCVSMD client terminated.");
154154

155155
return result;
156156
}

src/common/ipc/pipe/unix_socket_base.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class UnixSocketBase
9898
return bytes_read = ::read(input_fd, &msg_header, sizeof(msg_header));
9999
}))
100100
{
101-
logger_->error("Failed to read message header (fd={}): {}", input_fd, std::strerror(err));
101+
logger_->error("Failed to read message header (fd={}): {}.", input_fd, std::strerror(err));
102102
return err;
103103
}
104104

@@ -127,7 +127,7 @@ class UnixSocketBase
127127
return read = ::read(input_fd, buf_span.data(), buf_span.size());
128128
}))
129129
{
130-
logger_->error("Failed to read message payload (fd={}): {}", input_fd, std::strerror(err));
130+
logger_->error("Failed to read message payload (fd={}): {}.", input_fd, std::strerror(err));
131131
return err;
132132
}
133133
if (read != buf_span.size())

src/common/ipc/pipe/unix_socket_client.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ CETL_NODISCARD int UnixSocketClient::start(EventHandler event_handler)
6262
return client_fd_ = ::socket(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK, 0);
6363
}))
6464
{
65-
logger().error("Failed to create socket: {}", std::strerror(err));
65+
logger().error("Failed to create socket: {}.", std::strerror(err));
6666
return err;
6767
}
6868

@@ -83,7 +83,7 @@ CETL_NODISCARD int UnixSocketClient::start(EventHandler event_handler)
8383
offsetof(struct sockaddr_un, sun_path) + abstract_socket_path.size());
8484
}))
8585
{
86-
logger().error("Failed to connect to server: {}", std::strerror(err));
86+
logger().error("Failed to connect to server: {}.", std::strerror(err));
8787
return err;
8888
}
8989

@@ -111,7 +111,7 @@ void UnixSocketClient::handle_socket()
111111
}
112112
else
113113
{
114-
logger().warn("Failed to handle server response - closing connection: {}", std::strerror(err));
114+
logger().warn("Failed to handle server response - closing connection: {}.", std::strerror(err));
115115
}
116116

117117
socket_callback_.reset();

src/common/ipc/pipe/unix_socket_server.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ CETL_NODISCARD int UnixSocketServer::start(EventHandler event_handler)
111111
return server_fd_ = ::socket(AF_UNIX, SOCK_STREAM, 0);
112112
}))
113113
{
114-
logger().error("Failed to create server socket: {}", std::strerror(err));
114+
logger().error("Failed to create server socket: {}.", std::strerror(err));
115115
return err;
116116
}
117117

@@ -132,7 +132,7 @@ CETL_NODISCARD int UnixSocketServer::start(EventHandler event_handler)
132132
offsetof(struct sockaddr_un, sun_path) + abstract_socket_path.size());
133133
}))
134134
{
135-
logger().error("Failed to bind server socket: {}", std::strerror(err));
135+
logger().error("Failed to bind server socket: {}.", std::strerror(err));
136136
return err;
137137
}
138138

@@ -141,7 +141,7 @@ CETL_NODISCARD int UnixSocketServer::start(EventHandler event_handler)
141141
return ::listen(server_fd_, MaxConnections);
142142
}))
143143
{
144-
logger().error("Failed to listen on server socket: {}", std::strerror(err));
144+
logger().error("Failed to listen on server socket: {}.", std::strerror(err));
145145
return err;
146146
}
147147

@@ -165,7 +165,7 @@ void UnixSocketServer::handleAccept()
165165
return client_fd = ::accept(server_fd_, nullptr, nullptr);
166166
}))
167167
{
168-
logger().warn("Failed to accept client connection: {}", std::strerror(err));
168+
logger().warn("Failed to accept client connection: {}.", std::strerror(err));
169169
return;
170170
}
171171

@@ -201,7 +201,7 @@ void UnixSocketServer::handleClientRequest(const ClientId client_id, const int c
201201
}
202202
else
203203
{
204-
logger().warn("Failed to handle client request - closing connection (id={}, fd={}): {}",
204+
logger().warn("Failed to handle client request - closing connection (id={}, fd={}): {}.",
205205
client_id,
206206
client_fd,
207207
std::strerror(err));

src/daemon/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ int main(const int argc, const char** const argv)
395395
Application application;
396396
if (const auto failure_str = application.init())
397397
{
398-
spdlog::critical("Failed to init application: {}\n", failure_str.value());
398+
spdlog::critical("Failed to init application: {}", failure_str.value());
399399

400400
// Report the failure to the parent process (if daemonized; otherwise goes to stderr).
401401
writeString(pipe_write_fd, "Failed to init application: ");
@@ -414,7 +414,7 @@ int main(const int argc, const char** const argv)
414414
spdlog::debug("Received termination signal.");
415415
}
416416
}
417-
spdlog::info("OCVSMD daemon terminated.\n");
417+
spdlog::info("OCVSMD daemon terminated.");
418418

419419
return EXIT_SUCCESS;
420420
}

src/sdk/daemon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class DaemonImpl final : public Daemon
4545
{
4646
if (const int err = ipc_router_->start())
4747
{
48-
logger_->error("Failed to start IPC router: {}", std::strerror(err));
48+
logger_->error("Failed to start IPC router: {}.", std::strerror(err));
4949
return err;
5050
}
5151

0 commit comments

Comments
 (0)