diff --git a/net/bluetooth/att.c b/net/bluetooth/att.c index 72fe00bfadc..4ffaf25cc1a 100644 --- a/net/bluetooth/att.c +++ b/net/bluetooth/att.c @@ -118,7 +118,7 @@ void bt_att_recv(struct bt_conn *conn, struct bt_buf *buf) goto done; } - BT_DBG("Received ATT code %u len %u\n", buf->len); + BT_DBG("Received ATT code %u len %u\n", hdr->code, buf->len); bt_buf_pull(buf, sizeof(*hdr));