Skip to content

Commit a6081ee

Browse files
Jordan Yatescarlescufi
authored andcommitted
wifi: esp_at: fix pointer logging
Use the proper `%p` printf specifier when printing memory addresses, instead of casting to an integer, which may not be the same size as a pointer. Signed-off-by: Jordan Yates <[email protected]>
1 parent a908793 commit a6081ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/wifi/esp_at/esp_offload.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,8 @@ static int esp_recv(struct net_context *context,
536536
struct esp_socket *sock = context->offload_context;
537537
int ret;
538538

539-
LOG_DBG("link_id %d, timeout %d, cb 0x%x, data 0x%x", sock->link_id,
540-
timeout, (int)cb, (int)user_data);
539+
LOG_DBG("link_id %d, timeout %d, cb %p, data %p",
540+
sock->link_id, timeout, cb, user_data);
541541

542542
k_mutex_lock(&sock->lock, K_FOREVER);
543543
sock->recv_cb = cb;

0 commit comments

Comments
 (0)