diff --git a/sys/compat/lindebugfs/lindebugfs.c b/sys/compat/lindebugfs/lindebugfs.c index 88b92afd374..89652b5685c 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); }