From 3af8cb576566985b472c3483c25878906e1cbf36 Mon Sep 17 00:00:00 2001 From: Lou Berger Date: Tue, 10 Oct 2017 07:29:40 -0400 Subject: [PATCH] rfapi: whitespace change and add debug check Signed-off-by: Lou Berger --- bgpd/rfapi/rfapi_import.c | 3 ++- bgpd/rfapi/rfapi_vty.c | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 */ } -- 2.39.5