]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: New code adds newline to log files
authorDonald Sharp <sharpd@nvidia.com>
Wed, 19 May 2021 18:51:23 +0000 (14:51 -0400)
committerIgor Ryzhov <iryzhov@nfware.com>
Thu, 27 May 2021 10:18:42 +0000 (13:18 +0300)
FRR is not using newlines in log messages.  Remove them.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
ospfd/ospf_ri.c
ospfd/ospf_te.c

index 4b779431086ef6c792f1fff580f07b07058d0078..602f98d14179c4ef77c5afe5ccf17790cbbdf7dd 100644 (file)
@@ -1231,7 +1231,7 @@ static int ospf_router_info_lsa_update(struct ospf_lsa *lsa)
                                vty_out(vty, "  Wrong %s TLV size: %d(%d)\n",  \
                                        msg, ntohs(tlvh->length), size);       \
                        else                                                   \
-                               zlog_debug("    Wrong %s TLV size: %d(%d)\n",  \
+                               zlog_debug("    Wrong %s TLV size: %d(%d)",    \
                                           msg, ntohs(tlvh->length), size);    \
                        return size + TLV_HDR_SIZE;                            \
                }                                                              \
index 0946e510775244f43a3bf3d0f666243c44f4102a..333fa6a3a18d75bb041b7d4ada5a70b7b826b0ff 100644 (file)
@@ -3161,11 +3161,11 @@ static void ospf_te_init_ted(struct ls_ted *ted, struct ospf *ospf)
                                vty_out(vty, "  Wrong %s TLV size: %d(%d)\n",  \
                                        msg, ntohs(tlvh->length), size);       \
                        else                                                   \
-                               zlog_debug("    Wrong %s TLV size: %d(%d)\n",  \
+                               zlog_debug("    Wrong %s TLV size: %d(%d)",    \
                                           msg, ntohs(tlvh->length), size);    \
                        return size + TLV_HDR_SIZE;                            \
                }                                                              \
-       } while(0)
+       } while (0)
 
 static uint16_t show_vty_router_addr(struct vty *vty, struct tlv_header *tlvh)
 {