From 4d58a383bf933a4f46131e35cf7eb4f5030239a6 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Tue, 21 Feb 2023 23:32:36 +0100 Subject: [PATCH] util: improve error message of `ioctl_retried` --- util/opts/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/opts/log.c b/util/opts/log.c index 0e943fa..47426f8 100644 --- a/util/opts/log.c +++ b/util/opts/log.c @@ -97,7 +97,7 @@ int ioctl_retried(const char *name, int fd, int request, void *arg) } if (ret && retries <= 0) { - LOG_PERROR(NULL, "%s: ioctl(%08x) retried %u times; giving up", name, request, MAX_RETRIES); + LOG_PERROR(NULL, "%s: ioctl(%08x, errno=%d) retried %u times; giving up", name, request, errno, MAX_RETRIES); } return ret; }