From: Donald Sharp Date: Thu, 5 May 2016 00:13:54 +0000 (-0400) Subject: lib: Fix unprotected debug X-Git-Tag: frr-2.0-rc1~939 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=0b6d694ba04ab007fe02bc056bfc8e8f76a69e3f;p=matthieu%2Ffrr.git 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 Reviewed-by: Vivek Venkatraman --- diff --git a/lib/vrf.c b/lib/vrf.c index b85ce63f9b..bc82ea9d8a 100644 --- a/lib/vrf.c +++ b/lib/vrf.c @@ -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) {