git: 84008e34ce5f - main - lindebugfs: improve an error message
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 14 Jun 2026 22:32:30 UTC
The branch main has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=84008e34ce5fb92c69b63cdf1ce2938c5006320b
commit 84008e34ce5fb92c69b63cdf1ce2938c5006320b
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-14 22:31:38 +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
MFC after: 3 days
Reviewed by: dumbbell, emaste
Differential Revision: https://reviews.freebsd.org/D57523
---
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);
}