Commit 232ecfd8 authored by Make Shi's avatar Make Shi Committed by Benjamin Cabé
Browse files

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: default avatarMake Shi <make.shi@nxp.com>
parent 865152fb
Loading
Loading
Loading
Loading
+1 −1
Changes for subsys/bluetooth/host/classic/l2cap_br.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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);

	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,
			CONFIG_BT_CONN_TX_USER_DATA_SIZE,
			buf->pool_id);