From 75c6a5e9dbb3357dcd04cb2aa406d503d667457d Mon Sep 17 00:00:00 2001 From: Wenzel <111205756+wenzel-hoffman@users.noreply.github.com> Date: Thu, 13 Oct 2022 04:09:04 +0300 Subject: [PATCH] Fix missing TCP_PORT for printf in TCP server example (#270) Also replace `%d` with `%u` Co-authored-by: Viacheslav Lotsmanov --- pico_w/tcp_server/picow_tcp_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pico_w/tcp_server/picow_tcp_server.c b/pico_w/tcp_server/picow_tcp_server.c index 30eb952..871f819 100644 --- a/pico_w/tcp_server/picow_tcp_server.c +++ b/pico_w/tcp_server/picow_tcp_server.c @@ -197,7 +197,7 @@ static bool tcp_server_open(void *arg) { err_t err = tcp_bind(pcb, NULL, TCP_PORT); if (err) { - DEBUG_printf("failed to bind to port %d\n"); + DEBUG_printf("failed to bind to port %u\n", TCP_PORT); return false; }