aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2026-06-10 11:18:47 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2026-06-14 22:31:38 +0000
commit84008e34ce5fb92c69b63cdf1ce2938c5006320b (patch)
tree5c21c289ea9d0cd7a4cbc954be7821672fa12746
parent3fa40c5eb8f57972bf0b329fd2d36af4d2700b8d (diff)
lindebugfs: improve an error message
In case the fill function fails do not report (read/write) but the actual operation only given we can easily determine it. Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: dumbbell, emaste Differential Revision: https://reviews.freebsd.org/D57523
-rw-r--r--sys/compat/lindebugfs/lindebugfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/lindebugfs/lindebugfs.c b/sys/compat/lindebugfs/lindebugfs.c
index 88b92afd374a..89652b5685c4 100644
--- a/sys/compat/lindebugfs/lindebugfs.c
+++ b/sys/compat/lindebugfs/lindebugfs.c
@@ -191,8 +191,8 @@ debugfs_fill(PFS_FILL_ARGS)
if (rc < 0) {
#ifdef INVARIANTS
- printf("%s:%d read/write failed with %zd\n", __func__, __LINE__,
- rc);
+ printf("%s:%d %s failed with %zd\n", __func__, __LINE__,
+ (uio->uio_rw == UIO_READ) ? "read" : "write", rc);
#endif
return (-rc);
}