From 184c8246891ced96b41d991ff99bb520a114827c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 9 Dec 2020 00:13:15 +0200 Subject: [PATCH] P2P: Add device address to the debug entry on oldest peer removal This makes it easier to understand debug logs with large number of peer entries. Signed-off-by: Jouni Malinen --- src/p2p/p2p.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c index 9524aef5a..81bb937b3 100644 --- a/src/p2p/p2p.c +++ b/src/p2p/p2p.c @@ -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); }