From 1fe416270b9a431dbc0b545825dc7de79d09615e Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Wed, 28 Nov 2018 14:51:20 +0200 Subject: [PATCH] lib: connection - When logging fd, use %d and not %u File descriptors are signed integers --- src/lib/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3