diff options
author | David Lamparter <equinox@diac24.net> | 2021-02-14 15:35:07 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2021-02-14 15:36:51 +0100 |
commit | 1d5453d6070f5266f0bdf709690282a0dc5dc83d (patch) | |
tree | 7eb4346adce641e92cc79a0be696908e924466e1 /pimd/pim_msdp_socket.c | |
parent | Merge pull request #8036 from qlyoung/disable-mallinfo (diff) | |
download | frr-1d5453d6070f5266f0bdf709690282a0dc5dc83d.tar.xz frr-1d5453d6070f5266f0bdf709690282a0dc5dc83d.zip |
*: remove tabs & newlines from log messages
Neither tabs nor newlines are acceptable in syslog messages. They also
break line-based parsing of file logs.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'pimd/pim_msdp_socket.c')
-rw-r--r-- | pimd/pim_msdp_socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_msdp_socket.c b/pimd/pim_msdp_socket.c index 7620cd579..ddd8dc6bf 100644 --- a/pimd/pim_msdp_socket.c +++ b/pimd/pim_msdp_socket.c @@ -44,7 +44,7 @@ static void pim_msdp_update_sock_send_buffer_size(int fd) if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &optval, &optlen) < 0) { flog_err_sys(EC_LIB_SOCKET, - "getsockopt of SO_SNDBUF failed %s\n", + "getsockopt of SO_SNDBUF failed %s", safe_strerror(errno)); return; } @@ -53,7 +53,7 @@ static void pim_msdp_update_sock_send_buffer_size(int fd) if (setsockopt(fd, SOL_SOCKET, SO_SNDBUF, &size, sizeof(size)) < 0) { flog_err_sys(EC_LIB_SOCKET, - "Couldn't increase send buffer: %s\n", + "Couldn't increase send buffer: %s", safe_strerror(errno)); } } |