diff options
author | jeff <jeff@FreeBSD.org> | 2011-06-10 22:15:36 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2011-06-10 22:15:36 +0000 |
commit | 02186557c493060453d6404a21286d5ece195663 (patch) | |
tree | ef092d931965a3d1790ca4acdbbe77caf13e9adb /sys/kern | |
parent | 8b7f42ad8e332515ca102ac2d0ae216ced4f13d8 (diff) | |
download | FreeBSD-src-02186557c493060453d6404a21286d5ece195663.zip FreeBSD-src-02186557c493060453d6404a21286d5ece195663.tar.gz |
- When printing bufs with show buf the lblkno is often more useful than
the blkno. Print them both.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_bio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 00681ca..2743089 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -3999,10 +3999,11 @@ DB_SHOW_COMMAND(buffer, db_show_buffer) db_printf("b_flags = 0x%b\n", (u_int)bp->b_flags, PRINT_BUF_FLAGS); db_printf( "b_error = %d, b_bufsize = %ld, b_bcount = %ld, b_resid = %ld\n" - "b_bufobj = (%p), b_data = %p, b_blkno = %jd, b_dep = %p\n", + "b_bufobj = (%p), b_data = %p, b_blkno = %jd, b_lblkno = %jd, " + "b_dep = %p\n", bp->b_error, bp->b_bufsize, bp->b_bcount, bp->b_resid, bp->b_bufobj, bp->b_data, (intmax_t)bp->b_blkno, - bp->b_dep.lh_first); + (intmax_t)bp->b_lblkno, bp->b_dep.lh_first); if (bp->b_npages) { int i; db_printf("b_npages = %d, pages(OBJ, IDX, PA): ", bp->b_npages); |