Separate fiels reported by disk_err() with spaces, so that output doesn't

look cryptic.

MFC after:	1 week
This commit is contained in:
Maxim Sobolev 2002-10-17 23:48:29 +00:00
parent 119b9f09e9
commit 2e307eb8c9

View File

@ -456,14 +456,14 @@ disk_err(struct bio *bp, const char *what, int blkdone, int nl)
{ {
daddr_t sn; daddr_t sn;
printf("%s: %s", devtoname(bp->bio_dev), what); printf("%s: %s ", devtoname(bp->bio_dev), what);
switch(bp->bio_cmd) { switch(bp->bio_cmd) {
case BIO_READ: printf("cmd=read"); break; case BIO_READ: printf("cmd=read "); break;
case BIO_WRITE: printf("cmd=write"); break; case BIO_WRITE: printf("cmd=write "); break;
case BIO_DELETE: printf("cmd=delete"); break; case BIO_DELETE: printf("cmd=delete "); break;
case BIO_GETATTR: printf("cmd=getattr"); break; case BIO_GETATTR: printf("cmd=getattr "); break;
case BIO_SETATTR: printf("cmd=setattr"); break; case BIO_SETATTR: printf("cmd=setattr "); break;
default: printf("cmd=%x", bp->bio_cmd); break; default: printf("cmd=%x ", bp->bio_cmd); break;
} }
sn = bp->bio_blkno; sn = bp->bio_blkno;
if (bp->bio_bcount <= DEV_BSIZE) { if (bp->bio_bcount <= DEV_BSIZE) {