From 0105d77185c6e649eb9c264af5b0f67269c2c6d1 Mon Sep 17 00:00:00 2001 From: Johan Bertrand <6369937+JohanBertrand@users.noreply.github.com> Date: Sat, 28 Sep 2024 21:06:27 +0200 Subject: [PATCH] Fix log format --- Drv/Ip/SocketComponentHelper.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Drv/Ip/SocketComponentHelper.cpp b/Drv/Ip/SocketComponentHelper.cpp index ebd177fe43..fd92684e36 100644 --- a/Drv/Ip/SocketComponentHelper.cpp +++ b/Drv/Ip/SocketComponentHelper.cpp @@ -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(status), - static_cast(errno)); + "[WARNING] Failed to open port with status %d and errno %d\n", + status, + errno); (void) Os::Task::delay(SOCKET_RETRY_INTERVAL); continue; } @@ -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(status), - static_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 {