Skip to content

Commit

Permalink
Fix log format
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanBertrand committed Sep 28, 2024
1 parent 7a319b0 commit 0105d77
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Drv/Ip/SocketComponentHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ void SocketComponentHelper::readTask(void* pointer) {
status = self->reconnect();
if(status != SOCK_SUCCESS) {
Fw::Logger::log(
"[WARNING] Failed to open port with status %lu and errno %lu\n",
static_cast<POINTER_CAST>(status),
static_cast<POINTER_CAST>(errno));
"[WARNING] Failed to open port with status %d and errno %d\n",
status,
errno);
(void) Os::Task::delay(SOCKET_RETRY_INTERVAL);
continue;
}
Expand All @@ -182,9 +182,9 @@ void SocketComponentHelper::readTask(void* pointer) {
// recv blocks, so it may have been a while since its done an isOpened check
status = self->recv(data, size);
if ((status != SOCK_SUCCESS) && (status != SOCK_INTERRUPTED_TRY_AGAIN)) {
Fw::Logger::log("[WARNING] Failed to recv from port with status %lu and errno %lu\n",
static_cast<POINTER_CAST>(status),
static_cast<POINTER_CAST>(errno));
Fw::Logger::log("[WARNING] Failed to recv from port with status %d and errno %d\n",
status,
errno);
self->close();
buffer.setSize(0);
} else {
Expand Down

0 comments on commit 0105d77

Please sign in to comment.