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
This commit is contained in:
Bjoern A. Zeeb
2026-06-10 11:18:47 +00:00
parent 3fa40c5eb8
commit 84008e34ce
+2 -2
View File
@@ -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);
}