From: Aki Tuomi Date: Wed, 28 Nov 2018 12:51:20 +0000 (+0200) Subject: lib: connection - When logging fd, use %d and not %u X-Git-Tag: 2.3.9~1060 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1fe416270b9a431dbc0b545825dc7de79d09615e;p=thirdparty%2Fdovecot%2Fcore.git lib: connection - When logging fd, use %d and not %u File descriptors are signed integers --- diff --git a/src/lib/connection.c b/src/lib/connection.c index 2884ecbdf8..813f3c7488 100644 --- a/src/lib/connection.c +++ b/src/lib/connection.c @@ -513,7 +513,7 @@ void connection_disconnect(struct connection *conn) struct event_passthrough *e = event_create_passthrough(conn->event)-> set_name(ename)-> add_str("reason", connection_disconnect_reason(conn)); - e_debug(e->event(), "Disconnected: %s (fd=%u)", + e_debug(e->event(), "Disconnected: %s (fd=%d)", connection_disconnect_reason(conn), conn->fd_in); conn->last_input = 0;