diff options
author | phk <phk@FreeBSD.org> | 1999-08-31 18:36:15 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-08-31 18:36:15 +0000 |
commit | 606e8cc53ce6cd3fb81a1891e3c5d0bb59940c3f (patch) | |
tree | 9d81df76165a6f87993e717aaaadb32810b9f00a /sys/kern | |
parent | 34b4a59103c885a67ddfce77442f1e93c0d80f8f (diff) | |
download | FreeBSD-src-606e8cc53ce6cd3fb81a1891e3c5d0bb59940c3f.zip FreeBSD-src-606e8cc53ce6cd3fb81a1891e3c5d0bb59940c3f.tar.gz |
Include "dscheck" and device name in all messages from dscheck().
Diffstat (limited to 'sys/kern')
-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 e2b35ef..5424a6a 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; |