From 0dce66d5257fce95bb2fd07ccfeaba3bee4af4f8 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 19 Dec 2024 14:47:51 +0100 Subject: [KERNEL] Correct and improve connect timing debug messages --- src/kernel/net.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/kernel/net.c b/src/kernel/net.c index fcea31b..5501309 100644 --- a/src/kernel/net.c +++ b/src/kernel/net.c @@ -708,16 +708,16 @@ static int dnbd3_connect(dnbd3_device_t *dev, struct sockaddr_storage *addr, str * this function would hang for over a minute for unreachable hosts. * Leave in this debug check for twice the configured timeout. */ - dnbd3_dev_err_host(dev, addr, "connect: call took %dms\n", - connect_time_ms); + dnbd3_dev_err_host(dev, addr, "connect: call took %dms (timeout: %dms)\n", + diff, connect_time_ms); } if (ret != 0) { if (ret == -EINTR) - dnbd3_dev_dbg_host(dev, addr, "connect: interrupted system call (blocked %dms)\n", - connect_time_ms); + dnbd3_dev_dbg_host(dev, addr, "connect: interrupted system call, blocked %dms (timeout: %dms)\n", + diff, connect_time_ms); else - dnbd3_dev_dbg_host(dev, addr, "connect: failed (%d, blocked %dms)\n", - ret, connect_time_ms); + dnbd3_dev_dbg_host(dev, addr, "connect: failed (%d, blocked %dms, timeout %dms)\n", + ret, diff, connect_time_ms); goto error; } *sock_out = sock; -- cgit v1.2.3-55-g7522