diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-08-31 18:36:15 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-08-31 18:36:15 +0000 |
| commit | d27535c143dd2523345f337037929105b37ee42c (patch) | |
| tree | 309f2aa87c5e6a384a43b08778393f74b1401934 /sys/kern/subr_diskslice.c | |
| parent | c43f30e13afdf2310a7327d35fa4528ccb8a564a (diff) | |
Notes
Diffstat (limited to 'sys/kern/subr_diskslice.c')
| -rw-r--r-- | sys/kern/subr_diskslice.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/sys/kern/subr_diskslice.c b/sys/kern/subr_diskslice.c index e2b35efaecac..5424a6aaacd7 100644 --- a/sys/kern/subr_diskslice.c +++ b/sys/kern/subr_diskslice.c @@ -165,7 +165,8 @@ dscheck(bp, ssp) blkno = bp->b_blkno; if (blkno < 0) { - printf("dscheck: negative b_blkno %ld\n", (long)blkno); + printf("dscheck(%s): negative b_blkno %ld\n", + devtoname(bp->b_dev), (long)blkno); bp->b_error = EINVAL; goto bad; } @@ -206,7 +207,9 @@ if (labelsect != 0) Debugger("labelsect != 0 in dscheck()"); newsecno = transbad144(sp->ds_bad, slicerel_secno); if (newsecno != slicerel_secno) - printf("should map bad sector %ld -> %ld\n", + printf("dscheck(%s):" + " should map bad sector %ld -> %ld\n", + devtoname(bp->b_dev), (long)slicerel_secno, (long)newsecno); } } @@ -292,7 +295,8 @@ if (labelsect != 0) Debugger("labelsect != 0 in dscheck()"); (bp->b_data + ic->ic_args[0].ia_long), TRUE); if (msg != NULL) { - printf("%s\n", msg); + printf("dscheck(%s): %s\n", + devtoname(bp->b_dev), msg); bp->b_error = EROFS; goto bad; } @@ -301,14 +305,16 @@ if (labelsect != 0) Debugger("labelsect != 0 in dscheck()"); return (1); bad_bcount: - printf("dscheck: b_bcount %ld is not on a sector boundary (ssize %d)\n", - bp->b_bcount, ssp->dss_secsize); + printf("dscheck(%s):" + " b_bcount %ld is not on a sector boundary (ssize %d)\n", + devtoname(bp->b_dev), bp->b_bcount, ssp->dss_secsize); bp->b_error = EINVAL; goto bad; bad_blkno: - printf("dscheck: b_blkno %ld is not on a sector boundary (ssize %d)\n", - (long)blkno, ssp->dss_secsize); + printf("dscheck(%s):" + " b_blkno %ld is not on a sector boundary (ssize %d)\n", + devtoname(bp->b_dev), (long)blkno, ssp->dss_secsize); bp->b_error = EINVAL; goto bad; |
