git: 2a3f125a39bd - stable/15 - lindebugfs: improve an error message
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Jun 2026 06:34:25 UTC
The branch stable/15 has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=2a3f125a39bdbb39a5e238313166d7e59eeba0ce
commit 2a3f125a39bdbb39a5e238313166d7e59eeba0ce
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2026-06-10 11:18:47 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-06-29 03:53:21 +0000
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
Reviewed by: dumbbell, emaste
Differential Revision: https://reviews.freebsd.org/D57523
(cherry picked from commit 84008e34ce5fb92c69b63cdf1ce2938c5006320b)
---
sys/compat/lindebugfs/lindebugfs.c | 4 ++--
1 file 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);
}