util: improve error message of ioctl_retried

This commit is contained in:
Kamil Trzcinski 2023-02-21 23:32:36 +01:00
parent 38c1811fdf
commit 4d58a383bf

View File

@ -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;
}