diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-23 12:16:45 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-23 12:16:45 +0100 |
commit | feed3c682439308ecd0f78386e26bbf8df468aa0 (patch) | |
tree | 26c0d160f09e5934dcbdda3c426a6dddf621015d /src/libutil | |
parent | 6784ed26d1a76c04ca27ec9badf4fbc32af29332 (diff) | |
download | rspamd-feed3c682439308ecd0f78386e26bbf8df468aa0.tar.gz rspamd-feed3c682439308ecd0f78386e26bbf8df468aa0.zip |
[Minor] Fix format string
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/addr.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libutil/addr.c b/src/libutil/addr.c index 782b05254..9e74245a7 100644 --- a/src/libutil/addr.c +++ b/src/libutil/addr.c @@ -1074,7 +1074,9 @@ rspamd_inet_address_listen (const rspamd_inet_addr_t *addr, gint type, #if defined(SO_REUSEADDR) if (setsockopt (fd, SOL_SOCKET, SO_REUSEADDR, (const void *)&on, sizeof (gint)) == -1) { - msg_err ("cannot set SO_REUSEADDR on %d: %d", fd, strerror (errno)); + msg_err ("cannot set SO_REUSEADDR on %s (fd=%d): %s", + rspamd_inet_address_to_string_pretty (addr), + fd, strerror (errno)); goto err; } #endif @@ -1084,7 +1086,9 @@ rspamd_inet_address_listen (const rspamd_inet_addr_t *addr, gint type, on = 1; if (setsockopt (fd, SOL_SOCKET, SO_REUSEPORT, (const void *)&on, sizeof (gint)) == -1) { - msg_err ("cannot set SO_REUSEPORT on %d: %d", fd, strerror (errno)); + msg_err ("cannot set SO_REUSEPORT on %s (fd=%d): %s", + rspamd_inet_address_to_string_pretty (addr), + fd, strerror (errno)); goto err; } } |