mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 22:22:16 +00:00
bgpd rfapi: small debug log enhancements
Signed-off-by: G. Paul Ziemba <paulz@labn.net>
This commit is contained in:
parent
97736e321b
commit
2125ebfa6d
@ -1724,11 +1724,17 @@ rfapi_query_inner (
|
|||||||
|
|
||||||
{
|
{
|
||||||
char buf[BUFSIZ];
|
char buf[BUFSIZ];
|
||||||
|
char *s;
|
||||||
|
|
||||||
prefix2str (&p, buf, BUFSIZ);
|
prefix2str (&p, buf, BUFSIZ);
|
||||||
buf[BUFSIZ - 1] = 0; /* guarantee NUL-terminated */
|
buf[BUFSIZ - 1] = 0; /* guarantee NUL-terminated */
|
||||||
vnc_zlog_debug_verbose ("%s(rfd=%p, target=%s, ppNextHop=%p)",
|
vnc_zlog_debug_verbose ("%s(rfd=%p, target=%s, ppNextHop=%p)",
|
||||||
__func__, rfd, buf, ppNextHopEntry);
|
__func__, rfd, buf, ppNextHopEntry);
|
||||||
|
|
||||||
|
s = ecommunity_ecom2str(rfd->import_table->rt_import_list,
|
||||||
|
ECOMMUNITY_FORMAT_ROUTE_MAP);
|
||||||
|
vnc_zlog_debug_verbose("%s rfd->import_table=%p, rfd->import_table->rt_import_list: %s",
|
||||||
|
__func__, rfd->import_table, s); XFREE (MTYPE_ECOMMUNITY_STR, s);
|
||||||
}
|
}
|
||||||
|
|
||||||
afi = family2afi (p.family);
|
afi = family2afi (p.family);
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
#include "bgpd/rfapi/vnc_debug.h"
|
#include "bgpd/rfapi/vnc_debug.h"
|
||||||
|
|
||||||
#define DEBUG_L2_EXTRA 0
|
#define DEBUG_L2_EXTRA 0
|
||||||
|
#define DEBUG_SHOW_EXTRA 0
|
||||||
|
|
||||||
#define VNC_SHOW_STR "VNC information\n"
|
#define VNC_SHOW_STR "VNC information\n"
|
||||||
|
|
||||||
@ -1520,6 +1521,9 @@ rfapiShowRemoteRegistrationsIt (
|
|||||||
|
|
||||||
fp (out, "Displayed %d out of %d %s%s",
|
fp (out, "Displayed %d out of %d %s%s",
|
||||||
printed, total, type, HVTY_NEWLINE);
|
printed, total, type, HVTY_NEWLINE);
|
||||||
|
#if DEBUG_SHOW_EXTRA
|
||||||
|
fp(out, "IT table above: it=%p%s", it, HVTY_NEWLINE);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
return printed;
|
return printed;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user