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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105365

View File

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