diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-02 16:43:01 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-02 16:43:01 +0300 |
commit | 3d6020ef1ed601e1f2db2a90f7b64d1a634db171 (patch) | |
tree | aeb199db662a4a0ceece072dab997b037181704e /src/lmtp.c | |
parent | 03490c09f41a52e59d5375c6b83872b725c96943 (diff) | |
download | rspamd-3d6020ef1ed601e1f2db2a90f7b64d1a634db171.tar.gz rspamd-3d6020ef1ed601e1f2db2a90f7b64d1a634db171.zip |
* Remove %m from logging it seems to be unsupported by FreeBSD printf version
Diffstat (limited to 'src/lmtp.c')
-rw-r--r-- | src/lmtp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lmtp.c b/src/lmtp.c index fb7c8a8b0..9503255a4 100644 --- a/src/lmtp.c +++ b/src/lmtp.c @@ -283,20 +283,20 @@ start_lmtp_worker (struct rspamd_worker *worker) /* Create listen socket */ if (worker->srv->cfg->lmtp_family == AF_INET) { if ((listen_sock = make_socket (&worker->srv->cfg->lmtp_addr, worker->srv->cfg->lmtp_port)) == -1) { - msg_err ("start_lmtp: cannot create tcp listen socket. %m"); + msg_err ("start_lmtp: cannot create tcp listen socket. %s", strerror (errno)); exit(-errno); } } else { un_addr = (struct sockaddr_un *) alloca (sizeof (struct sockaddr_un)); if (!un_addr || (listen_sock = make_unix_socket (worker->srv->cfg->lmtp_host, un_addr)) == -1) { - msg_err ("start_lmtp: cannot create unix listen socket. %m"); + msg_err ("start_lmtp: cannot create unix listen socket. %s", strerror (errno)); exit(-errno); } } if (listen (listen_sock, -1) == -1) { - msg_err ("start_lmtp: cannot listen on socket. %m"); + msg_err ("start_lmtp: cannot listen on socket. %s", strerror (errno)); exit(-errno); } /* Accept event */ |