From 8cd38306030c904cb1875cb9f205cc27c8a67ad2 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 28 Aug 2018 08:50:16 -0400 Subject: [PATCH] pimd: Add some more useful data to debug output End user was seeing this debug but we are not giving the user enough information to debug this on his own. Add a tiny bit of extra information that could point the user to solving the problem for themselves. Signed-off-by: Donald Sharp --- pimd/pim_pim.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c index 7113d5405e..d5ee30fb2e 100644 --- a/pimd/pim_pim.c +++ b/pimd/pim_pim.c @@ -332,8 +332,9 @@ static int pim_sock_read(struct thread *t) if (!ifp || !ifp->info) { if (PIM_DEBUG_PIM_PACKETS) zlog_debug( - "%s: Received incoming pim packet on interface not yet configured for pim", - __PRETTY_FUNCTION__); + "%s: Received incoming pim packet on interface(%s:%d) not yet configured for pim", + __PRETTY_FUNCTION__, + ifp ? ifp->name : "Unknown", ifindex); goto done; } int fail = pim_pim_packet(ifp, buf, len);