Skip to content

Commit

Permalink
ctxlink/wifi_server: Fix variable names when debug is enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
sidprice committed Dec 15, 2024
1 parent 90d23db commit 4956ed6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/platforms/ctxlink/WiFi_Server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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:
Expand All @@ -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;
}
}
Expand Down Expand Up @@ -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: {
Expand All @@ -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: {
Expand Down Expand Up @@ -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
//
Expand Down

0 comments on commit 4956ed6

Please sign in to comment.