From eaa23e020fdd139639a060e924f3a524d8f50393 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 13 Feb 2018 21:32:22 -0500 Subject: [PATCH] zebra: Add some useful debugs for notifying the owner Add a bit more detail to tell us what we are sending up to a protocol so we can debug it better in the future. Signed-off-by: Donald Sharp --- zebra/zserv.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/zebra/zserv.c b/zebra/zserv.c index 425a9549e6..301639cbd1 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -991,13 +991,21 @@ int zsend_route_notify_owner(struct route_entry *re, struct prefix *p, char buff[PREFIX_STRLEN]; zlog_debug( - "Not Notifying Owner: %u about prefix %s(%u)", + "Not Notifying Owner: %u about prefix %s(%u) %d", re->type, prefix2str(p, buff, sizeof(buff)), - re->table); + re->table, note); } return 0; } + if (IS_ZEBRA_DEBUG_PACKET) { + char buff[PREFIX_STRLEN]; + + zlog_debug("Notifying Owner: %u about prefix %s(%u) %d", + re->type, prefix2str(p, buff, sizeof(buff)), + re->table, note); + } + s = client->obuf; stream_reset(s); -- 2.39.5