From 4956ed65c38b5fec372be62c77aff9de7de659bf Mon Sep 17 00:00:00 2001 From: Sid Price <sid@sidprice.com> Date: Sun, 15 Dec 2024 10:21:09 -0700 Subject: [PATCH] ctxlink/wifi_server: Fix variable names when debug is enabled. --- src/platforms/ctxlink/WiFi_Server.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/platforms/ctxlink/WiFi_Server.c b/src/platforms/ctxlink/WiFi_Server.c index 19b9616d50c..db0f2a7ccf6 100644 --- a/src/platforms/ctxlink/WiFi_Server.c +++ b/src/platforms/ctxlink/WiFi_Server.c @@ -677,7 +677,7 @@ void handle_socket_accept_event(t_socketAccept *accept_data, SOCKET *client_sock * close the new client socket, refusing connection * */ - DEBUG_WARN("APP_SOCK_CB[%d]: Second connection rejected\r\n", msgType); + DEBUG_WARN("APP_SOCK_CB[%d]: Second connection rejected\r\n", msg_type); close(accept_data->sock); } else { *client_socket = accept_data->sock; @@ -717,7 +717,7 @@ void process_recv_error(SOCKET socket, t_socketRecv *recv_data, uint8_t msg_type swo_trace_client_socket = SOCK_ERR_INVALID; // Mark socket invalid swo_trace_client_connected = false; // No longer connected } - DEBUG_WARN("APP_SOCK_CB[%d]: Connection closed by peer\r\n", msgType); + DEBUG_WARN("APP_SOCK_CB[%d]: Connection closed by peer\r\n", msg_type); break; } case SOCK_ERR_INVALID_ADDRESS: @@ -731,7 +731,7 @@ void process_recv_error(SOCKET socket, t_socketRecv *recv_data, uint8_t msg_type case SOCK_ERR_TIMEOUT: case SOCK_ERR_BUFFER_FULL: default: { - DEBUG_WARN("APP_SOCK_CB[%d]: Unknown/unhandled error code %d bytes\r\n", msgType, lpRecvData->bufSize); + DEBUG_WARN("APP_SOCK_CB[%d]: Unknown/unhandled error code %d bytes\r\n", msg_type, recv_data->bufSize); break; } } @@ -773,7 +773,7 @@ static void app_socket_callback(SOCKET sock, uint8_t msg_type, void *msg) // // Unknown server ... TODO // - DEBUG_WARN("APP_SOCK_CB[%d]: Bind for unknown server\r\n", msgType); + DEBUG_WARN("APP_SOCK_CB[%d]: Bind for unknown server\r\n", msg_type); break; } case M2M_SOCKET_LISTEN_EVENT: { @@ -790,7 +790,7 @@ static void app_socket_callback(SOCKET sock, uint8_t msg_type, void *msg) // // Unknown server ... TODO // - DEBUG_WARN("APP_SOCK_CB[%d]: Listen event for unknown server\r\n", msgType); + DEBUG_WARN("APP_SOCK_CB[%d]: Listen event for unknown server\r\n", msg_type); break; } case M2M_SOCKET_ACCEPT_EVENT: { @@ -848,7 +848,7 @@ static void app_socket_callback(SOCKET sock, uint8_t msg_type, void *msg) input_buffer[input_index] = local_buffer[i]; } buffer_count += recv_data->bufSize; - DEBUG_WARN("Received -> %d, queued -> %ld\r\n", pRecvData->bufSize, buffer_count); + DEBUG_WARN("Received -> %d, queued -> %ld\r\n", recv_data->bufSize, buffer_count); // // Start another receive operation so we always get data //