diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-11-30 19:26:06 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-11-30 19:26:06 +0300 |
commit | 4dce4df79683f5562d557ef80f8e2a648aacf5e8 (patch) | |
tree | 411bbc76c26b974340047d854d51bbc42f331e0e /src/buffer.c | |
parent | 569df8dd24eb159b069ca7f5efa6a6ba3336d63d (diff) | |
download | rspamd-4dce4df79683f5562d557ef80f8e2a648aacf5e8.tar.gz rspamd-4dce4df79683f5562d557ef80f8e2a648aacf5e8.zip |
* Adopt printf function from nginx for comfortable printing of some data types (fixed strings, pids etc)
* Fix work of http maps (they were broken in some places before)
* Fix sync of statfiles (not fully tested yet)
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c index 6e862664a..d55b88d4d 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -70,7 +70,7 @@ write_buffers (int fd, rspamd_io_dispatcher_t * d, gboolean is_delayed) buf->pos += r; if (BUFREMAIN (buf) != 0) { /* Continue with this buffer */ - msg_debug ("write_buffers: wrote %ld bytes of %ld", (long int)r, (long int)buf->data->len); + msg_debug ("write_buffers: wrote %z bytes of %z", r, buf->data->len); continue; } } @@ -185,7 +185,8 @@ read_buffers (int fd, rspamd_io_dispatcher_t * d, gboolean skip_read) *pos += r; *len += r; } - msg_debug ("read_buffers: read %ld characters, policy is %s, watermark is: %ld", (long int)r, d->policy == BUFFER_LINE ? "LINE" : "CHARACTER", (long int)d->nchars); + msg_debug ("read_buffers: read %z characters, policy is %s, watermark is: %z", r, + d->policy == BUFFER_LINE ? "LINE" : "CHARACTER", d->nchars); } saved_policy = d->policy; @@ -369,7 +370,7 @@ rspamd_set_dispatcher_policy (rspamd_io_dispatcher_t * d, enum io_policy policy, } } - msg_debug ("rspamd_set_dispatcher_policy: new input length watermark is %ld", (long int)d->nchars); + msg_debug ("rspamd_set_dispatcher_policy: new input length watermark is %uz", d->nchars); } gboolean |