ble_mesh: Reduce the level of some mesh logs

This commit is contained in:
lly
2020-03-28 16:20:02 +08:00
committed by baohongde
parent be3be59feb
commit 1a89bfaef3
2 changed files with 3 additions and 3 deletions

View File

@ -1049,13 +1049,13 @@ static int net_decrypt(struct bt_mesh_subnet *sub, const u8_t *enc,
} }
if (rx->net_if == BLE_MESH_NET_IF_ADV && msg_cache_match(rx, buf)) { if (rx->net_if == BLE_MESH_NET_IF_ADV && msg_cache_match(rx, buf)) {
BT_WARN("Duplicate found in Network Message Cache"); BT_DBG("Duplicate found in Network Message Cache");
return -EALREADY; return -EALREADY;
} }
rx->ctx.addr = SRC(buf->data); rx->ctx.addr = SRC(buf->data);
if (!BLE_MESH_ADDR_IS_UNICAST(rx->ctx.addr)) { if (!BLE_MESH_ADDR_IS_UNICAST(rx->ctx.addr)) {
BT_WARN("Ignoring non-unicast src addr 0x%04x", rx->ctx.addr); BT_INFO("Ignoring non-unicast src addr 0x%04x", rx->ctx.addr);
return -EINVAL; return -EINVAL;
} }

View File

@ -1344,7 +1344,7 @@ static int trans_seg(struct net_buf_simple *buf, struct bt_mesh_net_rx *net_rx,
} }
if (rx->block == BLOCK_COMPLETE(rx->seg_n)) { if (rx->block == BLOCK_COMPLETE(rx->seg_n)) {
BT_WARN("Got segment for already complete SDU"); BT_INFO("Got segment for already complete SDU");
send_ack(net_rx->sub, net_rx->ctx.recv_dst, send_ack(net_rx->sub, net_rx->ctx.recv_dst,
net_rx->ctx.addr, net_rx->ctx.send_ttl, net_rx->ctx.addr, net_rx->ctx.send_ttl,
seq_auth, rx->block, rx->obo); seq_auth, rx->block, rx->obo);