Skip to content

Commit 0d2135b

Browse files
committed
net: l2: bluetooth: Add cast to forward declared struct
Logging v2 is using _Generic keyword for detecting type of log message arguments. Apparently, it does not support handling of pointers to forward declared structures. Added casting to void *. Signed-off-by: Krzysztof Chruscinski <[email protected]>
1 parent f004fec commit 0d2135b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/l2/bluetooth/bluetooth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ static int ipsp_accept(struct bt_conn *conn, struct bt_l2cap_chan **chan)
319319
struct bt_if_conn *if_conn = NULL;
320320
int i;
321321

322-
NET_DBG("Incoming conn %p", conn);
322+
NET_DBG("Incoming conn %p", (void *)conn);
323323

324324
/* Find unused slot to store the iface */
325325
for (i = 0; i < CONFIG_BT_MAX_CONN; i++) {

0 commit comments

Comments
 (0)