]> git.puffer.fish Git - matthieu/frr.git/commitdiff
rfapi: whitespace change and add debug check
authorLou Berger <lberger@labn.net>
Tue, 10 Oct 2017 11:29:40 +0000 (07:29 -0400)
committerLou Berger <lberger@labn.net>
Tue, 10 Oct 2017 11:29:40 +0000 (07:29 -0400)
Signed-off-by: Lou Berger <lberger@labn.net>
bgpd/rfapi/rfapi_import.c
bgpd/rfapi/rfapi_vty.c

index a8732951e51478e8b0112df7ab0e5ad6d857bc21..894bdad767e569a6ad089b14532bb6445ec6ee9d 100644 (file)
@@ -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);
 
index aa4d48932f71dd97a438de263d68a4463f5e9487..f678e78825ba5df5cc0b99e5024fded236adda41 100644 (file)
@@ -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 */
 }