]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: connection - When logging fd, use %d and not %u
authorAki Tuomi <aki.tuomi@dovecot.fi>
Wed, 28 Nov 2018 12:51:20 +0000 (14:51 +0200)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Wed, 28 Nov 2018 13:19:16 +0000 (15:19 +0200)
File descriptors are signed integers

src/lib/connection.c

index 2884ecbdf804ab879f0c5cbb7c21623b332ca5d9..813f3c7488ec4cd25fad49ae7440b0b4a0b3423a 100644 (file)
@@ -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;