diff options
| author | David Lamparter <equinox@diac24.net> | 2021-03-12 02:55:00 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2021-03-14 22:56:07 +0100 |
| commit | 5d27875b7d2f54766b951b5d555851320ca8708f (patch) | |
| tree | 1f0e7c79b0e201ae04cac16e309dd2fa89e9e723 /zebra/zebra_rib.c | |
| parent | ef7b8be4592dae660b14ea4c73e5160f99482da7 (diff) | |
zebra: move up prefix2str call in rib dump
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'zebra/zebra_rib.c')
| -rw-r--r-- | zebra/zebra_rib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 128edd9fd3..bc3c68638d 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -2830,8 +2830,10 @@ void _route_entry_dump(const char *func, union prefixconstptr pp, struct vrf *vrf = vrf_lookup_by_id(re->vrf_id); struct nexthop_group *nhg; + prefix2str(pp, straddr, sizeof(straddr)); + zlog_debug("%s: dumping RE entry %p for %s%s%s vrf %s(%u)", func, - (const void *)re, prefix2str(pp, straddr, sizeof(straddr)), + (const void *)re, straddr, is_srcdst ? " from " : "", is_srcdst ? prefix2str(src_pp, srcaddr, sizeof(srcaddr)) : "", |
