Skip to content

Commit b123799

Browse files
Johan Hedbergjhedberg
authored andcommitted
Bluetooth: Mesh: Reduce logging clutter for LPN lookups
The logs for looking up LPNs were spamming the console a bit too much. Signed-off-by: Johan Hedberg <[email protected]>
1 parent c65d046 commit b123799

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

subsys/bluetooth/host/mesh/friend.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,10 +1150,6 @@ static bool friend_lpn_matches(struct bt_mesh_friend *frnd, u16_t net_idx,
11501150
{
11511151
int i;
11521152

1153-
BT_DBG("frnd->established %u frnd->lpn 0x%04x frnd->net_idx 0x%04x",
1154-
frnd->established, frnd->lpn, frnd->net_idx);
1155-
BT_DBG("addr 0x%04x net_idx 0x%04x", addr, net_idx);
1156-
11571153
if (!frnd->established) {
11581154
return false;
11591155
}
@@ -1183,16 +1179,18 @@ bool bt_mesh_friend_match(u16_t net_idx, u16_t addr)
11831179
{
11841180
int i;
11851181

1186-
BT_DBG("net_idx 0x%04x addr 0x%04x", net_idx, addr);
1187-
11881182
for (i = 0; i < ARRAY_SIZE(bt_mesh.frnd); i++) {
11891183
struct bt_mesh_friend *frnd = &bt_mesh.frnd[i];
11901184

11911185
if (friend_lpn_matches(frnd, net_idx, addr)) {
1186+
BT_DBG("LPN 0x%04x matched address 0x%04x",
1187+
frnd->lpn, addr);
11921188
return true;
11931189
}
11941190
}
11951191

1192+
BT_DBG("No matching LPN for address 0x%04x", addr);
1193+
11961194
return false;
11971195
}
11981196

0 commit comments

Comments
 (0)