diff options
| author | Mark Stapp <mjs@voltanet.io> | 2019-06-19 09:02:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-19 09:02:26 -0400 |
| commit | 8c86cd52be9be63ee221b54164867ea2031af6e3 (patch) | |
| tree | 8c1e0d36e6c47c14a5a187626e09c85b4db9bcec /zebra/zebra_rib.c | |
| parent | 1789cbacf4c905acc56f39e98db359bc0e595b92 (diff) | |
| parent | 0a7be32866d8f9bf8618848494c1c19609e45c5c (diff) | |
Merge pull request #4554 from donaldsharp/nht_improved_debugging
zebra: Display a bit better debugging for rnh tracking
Diffstat (limited to 'zebra/zebra_rib.c')
| -rw-r--r-- | zebra/zebra_rib.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index cc614abac5..61645f95f9 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -744,9 +744,10 @@ void zebra_rib_evaluate_rn_nexthops(struct route_node *rn, uint32_t seq) if (IS_ZEBRA_DEBUG_NHT_DETAILED) { char buf[PREFIX_STRLEN]; - zlog_debug("%s: %s Being examined for Nexthop Tracking", + zlog_debug("%s: %s Being examined for Nexthop Tracking Count: %zd", __PRETTY_FUNCTION__, - srcdest_rnode2str(rn, buf, sizeof(buf))); + srcdest_rnode2str(rn, buf, sizeof(buf)), + dest ? rnh_list_count(&dest->nht) : 0); } if (!dest) { rn = rn->parent; @@ -769,11 +770,12 @@ void zebra_rib_evaluate_rn_nexthops(struct route_node *rn, uint32_t seq) char buf1[PREFIX_STRLEN]; char buf2[PREFIX_STRLEN]; - zlog_debug("%u:%s has Nexthop(%s) depending on it, evaluating %u:%u", + zlog_debug("%u:%s has Nexthop(%s) Type: %s depending on it, evaluating %u:%u", zvrf->vrf->vrf_id, srcdest_rnode2str(rn, buf1, sizeof(buf1)), prefix2str(p, buf2, sizeof(buf2)), + rnh_type2str(rnh->type), seq, rnh->seqno); } |
