From: Donald Sharp Date: Wed, 14 Feb 2018 02:32:22 +0000 (-0500) Subject: zebra: Add some useful debugs for notifying the owner X-Git-Tag: frr-5.0-dev~207^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=eaa23e020fdd139639a060e924f3a524d8f50393;p=mirror%2Ffrr.git 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 --- 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);