From: Jouni Malinen Date: Tue, 8 Dec 2020 22:13:15 +0000 (+0200) Subject: P2P: Add device address to the debug entry on oldest peer removal X-Git-Tag: hostap_2_10~521 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=184c8246891ced96b41d991ff99bb520a114827c;p=thirdparty%2Fhostap.git 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 --- 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); }