summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Rettberg2024-12-19 14:47:51 +0100
committerSimon Rettberg2024-12-19 14:47:51 +0100
commit0dce66d5257fce95bb2fd07ccfeaba3bee4af4f8 (patch)
treeeec3154f64f4461e32934dd24eb69223904ebc9d /src
parent[KERNEL] Fix compile for 6.11+ (diff)
downloaddnbd3-0dce66d5257fce95bb2fd07ccfeaba3bee4af4f8.tar.gz
dnbd3-0dce66d5257fce95bb2fd07ccfeaba3bee4af4f8.tar.xz
dnbd3-0dce66d5257fce95bb2fd07ccfeaba3bee4af4f8.zip
[KERNEL] Correct and improve connect timing debug messages
Diffstat (limited to 'src')
-rw-r--r--src/kernel/net.c12
1 files changed, 6 insertions, 6 deletions
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;