Print out the device name when there is an uninitialised IO size or IO error

in spec_getpages().

Submitted by:	phk suggested the idea.
This commit is contained in:
Julian Elischer 1999-09-03 09:14:36 +00:00
parent c5d6480694
commit 1f7e07329d
2 changed files with 6 additions and 4 deletions

View File

@ -227,6 +227,7 @@ spec_open(ap)
error = (*dsw->d_open)(dev, ap->a_mode, S_IFBLK, p);
break;
default:
error = 0;
break;
}
@ -903,8 +904,8 @@ spec_getpages(ap)
m = ap->a_m[ap->a_reqpage];
#ifndef MAX_PERF
printf(
"spec_getpages: I/O read failure: (error code=%d) bp %p vp %p\n",
error, bp, bp->b_vp);
"spec_getpages:(%s) I/O read failure: (error=%d) bp %p vp %p\n",
devtoname(bp->b_dev), error, bp, bp->b_vp);
printf(
" size: %d, resid: %ld, a_count: %d, valid: 0x%x\n",
size, bp->b_resid, ap->a_count, m->valid);

View File

@ -227,6 +227,7 @@ spec_open(ap)
error = (*dsw->d_open)(dev, ap->a_mode, S_IFBLK, p);
break;
default:
error = 0;
break;
}
@ -903,8 +904,8 @@ spec_getpages(ap)
m = ap->a_m[ap->a_reqpage];
#ifndef MAX_PERF
printf(
"spec_getpages: I/O read failure: (error code=%d) bp %p vp %p\n",
error, bp, bp->b_vp);
"spec_getpages:(%s) I/O read failure: (error=%d) bp %p vp %p\n",
devtoname(bp->b_dev), error, bp, bp->b_vp);
printf(
" size: %d, resid: %ld, a_count: %d, valid: 0x%x\n",
size, bp->b_resid, ap->a_count, m->valid);