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 <jordan.yates@data61.csiro.au>
This commit is contained in:
parent
a9087936ac
commit
a6081eeedf
1 changed files with 2 additions and 2 deletions
|
@ -536,8 +536,8 @@ static int esp_recv(struct net_context *context,
|
|||
struct esp_socket *sock = context->offload_context;
|
||||
int ret;
|
||||
|
||||
LOG_DBG("link_id %d, timeout %d, cb 0x%x, data 0x%x", sock->link_id,
|
||||
timeout, (int)cb, (int)user_data);
|
||||
LOG_DBG("link_id %d, timeout %d, cb %p, data %p",
|
||||
sock->link_id, timeout, cb, user_data);
|
||||
|
||||
k_mutex_lock(&sock->lock, K_FOREVER);
|
||||
sock->recv_cb = cb;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue