Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ctxlink/wifi_server: Fix variable names when debug is enabled. #2025

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading