]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Add some useful debugs for notifying the owner
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 14 Feb 2018 02:32:22 +0000 (21:32 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 23 Feb 2018 19:45:57 +0000 (14:45 -0500)
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 <sharpd@cumulusnetworks.com>
zebra/zserv.c

index 425a9549e65ccfcaa9e9df403abc50b877b6d8b3..301639cbd1c17e91027296a38062689cba4f5986 100644 (file)
@@ -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);