]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/irdp_packet.c
Merge pull request #8317 from mjstapp/fix_short_printfrr_buf
[mirror_frr.git] / zebra / irdp_packet.c
index 56fd35a7366cb5b60766cd3efa9937234fbc34cf..7d67c42a79e9b06f843b7ca9f4f7bf6af164ebf8 100644 (file)
@@ -54,7 +54,6 @@
 #include "zclient.h"
 #include "lib_errors.h"
 
-#include "zebra_memory.h"
 #include "zebra/interface.h"
 #include "zebra/rtadv.h"
 #include "zebra/rib.h"
@@ -105,7 +104,7 @@ static void parse_irdp_packet(char *p, int len, struct interface *ifp)
 
        if (iplen < ICMP_MINLEN) {
                flog_err(EC_ZEBRA_IRDP_LEN_MISMATCH,
-                        "IRDP: RX ICMP packet too short from %pI4\n",
+                        "IRDP: RX ICMP packet too short from %pI4",
                         &src);
                return;
        }
@@ -116,7 +115,7 @@ static void parse_irdp_packet(char *p, int len, struct interface *ifp)
         len of IP-header) 14+20 */
        if (iplen > IRDP_RX_BUF - 34) {
                flog_err(EC_ZEBRA_IRDP_LEN_MISMATCH,
-                        "IRDP: RX ICMP packet too long from %pI4\n",
+                        "IRDP: RX ICMP packet too long from %pI4",
                         &src);
                return;
        }
@@ -153,7 +152,7 @@ static void parse_irdp_packet(char *p, int len, struct interface *ifp)
                && !(irdp->flags & IF_BROADCAST))) {
                flog_warn(
                        EC_ZEBRA_IRDP_BAD_RX_FLAGS,
-                       "IRDP: RX illegal from %pI4 to %s while %s operates in %s; Please correct settings\n",
+                       "IRDP: RX illegal from %pI4 to %s while %s operates in %s; Please correct settings",
                        &src,
                        ntohl(ip->ip_dst.s_addr) == INADDR_ALLRTRS_GROUP
                                ? "multicast"