diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-05-04 20:13:54 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-05-04 20:13:54 -0400 |
| commit | 0b6d694ba04ab007fe02bc056bfc8e8f76a69e3f (patch) | |
| tree | ed75424a190753dc6788fa88dafd5739d4790166 /lib/vrf.c | |
| parent | f47603b04df073bff8fc1b90d6de0ee5420abcec (diff) | |
lib: Fix unprotected debug
"Vrf found: %p" was not protected by a debug
check and as such we were seeing allot of
extraneous output.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Diffstat (limited to 'lib/vrf.c')
| -rw-r--r-- | lib/vrf.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -231,7 +231,8 @@ vrf_get (vrf_id_t vrf_id, const char *name) { vrf_build_key (vrf_id, &p); rn = route_node_get (vrf_table, &p); - zlog_debug("Vrf found: %p", rn->info); + if (debug_vrf) + zlog_debug("Vrf found: %p", rn->info); if (rn->info) { |
