summaryrefslogtreecommitdiff
path: root/sys/kern/subr_disk.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-10-18 17:27:10 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-10-18 17:27:10 +0000
commit1ad9172f6b6d52eadd9b7a0a87863012d2fc7266 (patch)
tree428b212e81fd434571ca69184845abca7c21b6dc /sys/kern/subr_disk.c
parent24730dd78ab369fda9f4aea24a4cd2818ff026c9 (diff)
Notes
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r--sys/kern/subr_disk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index 5737d848f583..9756ca6d7e4e 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");
}