From: Lou Berger Date: Tue, 10 Oct 2017 11:29:40 +0000 (-0400) Subject: rfapi: whitespace change and add debug check X-Git-Tag: frr-4.0-dev~211^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=3af8cb576566985b472c3483c25878906e1cbf36;p=mirror%2Ffrr.git rfapi: whitespace change and add debug check Signed-off-by: Lou Berger --- diff --git a/bgpd/rfapi/rfapi_import.c b/bgpd/rfapi/rfapi_import.c index a8732951e5..894bdad767 100644 --- a/bgpd/rfapi/rfapi_import.c +++ b/bgpd/rfapi/rfapi_import.c @@ -3530,7 +3530,8 @@ void rfapiBgpInfoFilteredImportVPN( * Compare types. Doing so prevents a RFP-originated * route from matching an imported route, for example. */ - if (bi->type != type) /* should be handled by RDs, but warn for now */ + if (VNC_DEBUG(VERBOSE) && bi->type != type) + /* should be handled by RDs, but warn for now */ zlog_warn("%s: type mismatch! (bi=%d, arg=%d)", __func__, bi->type, type); diff --git a/bgpd/rfapi/rfapi_vty.c b/bgpd/rfapi/rfapi_vty.c index aa4d48932f..f678e78825 100644 --- a/bgpd/rfapi/rfapi_vty.c +++ b/bgpd/rfapi/rfapi_vty.c @@ -4078,8 +4078,7 @@ static int check_and_display_is_vnc_running(struct vty *vty) return 1; /* is running */ if (vty) { - vty_out(vty, - "VNC is not configured.\n"); + vty_out(vty, "VNC is not configured.\n"); } return 0; /* not running */ }