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/plugins/surbl.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/plugins/surbl.c')
-rw-r--r-- | src/plugins/surbl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index 1940a5f57..d563e9cde 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -471,7 +471,7 @@ redirector_callback (int fd, short what, void *arg) event_add (¶m->ev, &timeout); r = snprintf (url_buf, sizeof (url_buf), "GET %s HTTP/1.0\r\n\r\n", struri (param->url)); if (write (param->sock, url_buf, r) == -1) { - msg_err ("redirector_callback: write failed %m"); + msg_err ("redirector_callback: write failed %s", strerror (errno)); event_del (¶m->ev); param->task->save.saved --; if (param->task->save.saved == 0) { @@ -555,7 +555,7 @@ register_redirector_call (struct uri *url, struct worker_task *task) s = socket (PF_INET, SOCK_STREAM, 0); if (s == -1) { - msg_info ("register_redirector_call: socket() failed: %m"); + msg_info ("register_redirector_call: socket() failed: %s", strerror (errno)); return; } @@ -566,7 +566,7 @@ register_redirector_call (struct uri *url, struct worker_task *task) if ((r = connect (s, (struct sockaddr*)&sc, sizeof (struct sockaddr_in))) == -1) { if (errno != EINPROGRESS) { close (s); - msg_info ("register_redirector_call: connect() failed: %m"); + msg_info ("register_redirector_call: connect() failed: %s", strerror (errno)); } } param = memory_pool_alloc (task->task_pool, sizeof (struct redirector_param)); |