Bluetooth: L2CAP_BR: Use LOG_WRN for not enough room in user_data

Using LOG_WRN could indicate that something about the user
configuration needs to be changed.

Signed-off-by: Make Shi <make.shi@nxp.com>
This commit is contained in:
Make Shi 2024-12-12 10:10:54 +08:00 committed by Benjamin Cabé
commit 232ecfd880

View file

@ -313,7 +313,7 @@ int bt_l2cap_br_send_cb(struct bt_conn *conn, uint16_t cid, struct net_buf *buf,
hdr->cid = sys_cpu_to_le16(cid); hdr->cid = sys_cpu_to_le16(cid);
if (buf->user_data_size < sizeof(struct closure)) { if (buf->user_data_size < sizeof(struct closure)) {
LOG_DBG("not enough room in user_data %d < %d pool %u", LOG_WRN("not enough room in user_data %d < %d pool %u",
buf->user_data_size, buf->user_data_size,
CONFIG_BT_CONN_TX_USER_DATA_SIZE, CONFIG_BT_CONN_TX_USER_DATA_SIZE,
buf->pool_id); buf->pool_id);