Skip to content

Commit

Permalink
[nrf fromtree] Bluetooth: Host: Upgrade log severity for L2CAP user e…
Browse files Browse the repository at this point in the history
…rror

For ease of development, we should log the event as an error.

Signed-off-by: Aleksander Wasaznik <[email protected]>
(cherry picked from commit 70ad45d)
  • Loading branch information
alwa-nordic authored and jukkar committed Dec 20, 2024
1 parent 898c46a commit 6e1590a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subsys/bluetooth/host/l2cap.c
Original file line number Diff line number Diff line change
Expand Up @@ -3252,7 +3252,7 @@ static int bt_l2cap_dyn_chan_send(struct bt_l2cap_le_chan *le_chan, struct net_b
/* Call `net_buf_reserve(buf, BT_L2CAP_SDU_CHAN_SEND_RESERVE)`
* when allocating buffers intended for bt_l2cap_chan_send().
*/
LOG_DBG("Not enough headroom in buf %p", buf);
LOG_ERR("Not enough headroom in buf %p", buf);
return -EINVAL;
}

Expand Down Expand Up @@ -3300,7 +3300,7 @@ int bt_l2cap_chan_send(struct bt_l2cap_chan *chan, struct net_buf *buf)
LOG_DBG("chan %p buf %p len %zu", chan, buf, buf->len);

if (buf->ref != 1) {
LOG_DBG("Expecting 1 ref, got %d", buf->ref);
LOG_WRN("Expecting 1 ref, got %d", buf->ref);
return -EINVAL;
}

Expand Down

0 comments on commit 6e1590a

Please sign in to comment.