diff options
Diffstat (limited to 'usr.sbin/smtpd/ioev.c')
| -rw-r--r-- | usr.sbin/smtpd/ioev.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/smtpd/ioev.c b/usr.sbin/smtpd/ioev.c index 946ab4012b3..7468c010a47 100644 --- a/usr.sbin/smtpd/ioev.c +++ b/usr.sbin/smtpd/ioev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ioev.c,v 1.13 2013/06/03 15:57:40 eric Exp $ */ +/* $OpenBSD: ioev.c,v 1.14 2013/10/26 12:27:59 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -88,7 +88,7 @@ io_strio(struct io *io) ssl[0] = '\0'; #ifdef IO_SSL if (io->ssl) { - snprintf(ssl, sizeof ssl, " ssl=%s:%s:%i", + snprintf(ssl, sizeof ssl, " ssl=%s:%s:%d", SSL_get_cipher_version(io->ssl), SSL_get_cipher_name(io->ssl), SSL_get_cipher_bits(io->ssl, NULL)); @@ -97,11 +97,11 @@ io_strio(struct io *io) if (io->iobuf == NULL) snprintf(buf, sizeof buf, - "<io:%p fd=%i to=%i fl=%s%s>", + "<io:%p fd=%d to=%d fl=%s%s>", io, io->sock, io->timeout, io_strflags(io->flags), ssl); else snprintf(buf, sizeof buf, - "<io:%p fd=%i to=%i fl=%s%s ib=%zu ob=%zu>", + "<io:%p fd=%d to=%d fl=%s%s ib=%zu ob=%zu>", io, io->sock, io->timeout, io_strflags(io->flags), ssl, io_pending(io), io_queued(io)); @@ -125,7 +125,7 @@ io_strevent(int evt) CASE(IO_TIMEOUT); CASE(IO_ERROR); default: - snprintf(buf, sizeof(buf), "IO_? %i", evt); + snprintf(buf, sizeof(buf), "IO_? %d", evt); return buf; } } @@ -296,7 +296,7 @@ io_release(struct io *io) void io_set_timeout(struct io *io, int msec) { - io_debug("io_set_timeout(%p, %i)\n", io, msec); + io_debug("io_set_timeout(%p, %d)\n", io, msec); io->timeout = msec; } @@ -812,7 +812,7 @@ again: io_callback(io, IO_ERROR); break; default: - io_debug("io_dispatch_read_ssl(...) -> r=%i\n", n); + io_debug("io_dispatch_read_ssl(...) -> r=%d\n", n); io_callback(io, IO_DATAIN); if (current == io && IO_READING(io) && SSL_pending(io->ssl)) goto again; @@ -859,7 +859,7 @@ io_dispatch_write_ssl(int fd, short event, void *humppa) io_callback(io, IO_ERROR); break; default: - io_debug("io_dispatch_write_ssl(...) -> w=%i\n", n); + io_debug("io_dispatch_write_ssl(...) -> w=%d\n", n); w2 = io_queued(io); if (w > io->lowat && w2 <= io->lowat) io_callback(io, IO_LOWAT); |
