diff options
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r-- | sys/kern/subr_disk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index 5737d84..9756ca6 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -45,7 +45,7 @@ disk_err(struct bio *bp, const char *what, int blkdone, int nl) case BIO_GETATTR: printf("cmd=getattr "); break; default: printf("cmd=%x ", bp->bio_cmd); break; } - sn = bp->bio_blkno; + sn = bp->bio_pblkno; if (bp->bio_bcount <= DEV_BSIZE) { printf("fsbn %jd%s", (intmax_t)sn, nl ? "\n" : ""); return; @@ -54,8 +54,8 @@ disk_err(struct bio *bp, const char *what, int blkdone, int nl) sn += blkdone; printf("fsbn %jd of ", (intmax_t)sn); } - printf("%jd-%jd", (intmax_t)bp->bio_blkno, - (intmax_t)(bp->bio_blkno + (bp->bio_bcount - 1) / DEV_BSIZE)); + printf("%jd-%jd", (intmax_t)bp->bio_pblkno, + (intmax_t)(bp->bio_pblkno + (bp->bio_bcount - 1) / DEV_BSIZE)); if (nl) printf("\n"); } |