summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2011-06-10 22:15:36 +0000
committerjeff <jeff@FreeBSD.org>2011-06-10 22:15:36 +0000
commit02186557c493060453d6404a21286d5ece195663 (patch)
treeef092d931965a3d1790ca4acdbbe77caf13e9adb /sys/kern/vfs_bio.c
parent8b7f42ad8e332515ca102ac2d0ae216ced4f13d8 (diff)
downloadFreeBSD-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/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c5
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);
OpenPOWER on IntegriCloud