]> git.proxmox.com Git - mirror_frr.git/commitdiff
ripd: Correct one debug log
authoranlan_cs <vic.lan@pica8.com>
Mon, 10 Apr 2023 03:04:47 +0000 (11:04 +0800)
committeranlan_cs <vic.lan@pica8.com>
Mon, 10 Apr 2023 03:11:30 +0000 (11:11 +0800)
Correct one debug log, which wrongly mixed address and port.

Before:
```
ripd[469497]: [NDAGH-Z85V7] rip_send_packet 3.3.3.4 > 224.0.0.9 (enp1s0)
ripd[469497]: [VEJY5-67P5X] SEND to 224.0.0.9520
```
After:
```
ripd[471330]: [NDAGH-Z85V7] rip_send_packet 3.3.3.4 > 224.0.0.9 (enp1s0)
ripd[471330]: [T8DFR-P09JH] SEND to 224.0.0.9 port 520
```

Signed-off-by: anlan_cs <vic.lan@pica8.com>
ripd/ripd.c

index ae4d93b4f5853f82835077737dcb02a877bb0fab..15e058a744184704238e5f8e5c06e82c31ca3d62 100644 (file)
@@ -1500,7 +1500,7 @@ static int rip_send_packet(uint8_t *buf, int size, struct sockaddr_in *to,
        ret = sendmsg(rip->sock, &msg, 0);
 
        if (IS_RIP_DEBUG_EVENT)
-               zlog_debug("SEND to  %pI4%d", &sin.sin_addr,
+               zlog_debug("SEND to %pI4 port %d", &sin.sin_addr,
                           ntohs(sin.sin_port));
 
        if (ret < 0)