]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Add device address to the debug entry on oldest peer removal
authorJouni Malinen <jouni@codeaurora.org>
Tue, 8 Dec 2020 22:13:15 +0000 (00:13 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 25 Feb 2021 18:09:58 +0000 (20:09 +0200)
This makes it easier to understand debug logs with large number of peer
entries.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/p2p/p2p.c

index 9524aef5ae125d038ffc9417c1ea0b4ebca6e592..81bb937b3611ad025a2fc2cd381d7f6bbb713fdb 100644 (file)
@@ -428,7 +428,9 @@ static struct p2p_device * p2p_create_device(struct p2p_data *p2p,
                        oldest = dev;
        }
        if (count + 1 > p2p->cfg->max_peers && oldest) {
-               p2p_dbg(p2p, "Remove oldest peer entry to make room for a new peer");
+               p2p_dbg(p2p,
+                       "Remove oldest peer entry to make room for a new peer "
+                       MACSTR, MAC2STR(oldest->info.p2p_device_addr));
                dl_list_del(&oldest->list);
                p2p_device_free(p2p, oldest);
        }