Skip to content

Commit 70ad45d

Browse files
alwa-nordichenrikbrixandersen
authored andcommitted
Bluetooth: Host: Upgrade log severity for L2CAP user error
For ease of development, we should log the event as an error. Signed-off-by: Aleksander Wasaznik <[email protected]>
1 parent 200de7c commit 70ad45d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subsys/bluetooth/host/l2cap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3147,7 +3147,7 @@ static int bt_l2cap_dyn_chan_send(struct bt_l2cap_le_chan *le_chan, struct net_b
31473147
/* Call `net_buf_reserve(buf, BT_L2CAP_SDU_CHAN_SEND_RESERVE)`
31483148
* when allocating buffers intended for bt_l2cap_chan_send().
31493149
*/
3150-
LOG_DBG("Not enough headroom in buf %p", buf);
3150+
LOG_ERR("Not enough headroom in buf %p", buf);
31513151
return -EINVAL;
31523152
}
31533153

@@ -3195,7 +3195,7 @@ int bt_l2cap_chan_send(struct bt_l2cap_chan *chan, struct net_buf *buf)
31953195
LOG_DBG("chan %p buf %p len %zu", chan, buf, buf->len);
31963196

31973197
if (buf->ref != 1) {
3198-
LOG_DBG("Expecting 1 ref, got %d", buf->ref);
3198+
LOG_WRN("Expecting 1 ref, got %d", buf->ref);
31993199
return -EINVAL;
32003200
}
32013201

0 commit comments

Comments
 (0)