diff options
| author | Julian Elischer <julian@FreeBSD.org> | 1999-09-03 09:14:36 +0000 |
|---|---|---|
| committer | Julian Elischer <julian@FreeBSD.org> | 1999-09-03 09:14:36 +0000 |
| commit | 1f7e07329d1ec527f61e613f71b0043848d258e0 (patch) | |
| tree | 89515039010960e6dcbacf7e0e948fbd187d7e01 | |
| parent | c5d648069488265be80ddfe1babb151d97489d2d (diff) | |
Notes
| -rw-r--r-- | sys/fs/specfs/spec_vnops.c | 5 | ||||
| -rw-r--r-- | sys/miscfs/specfs/spec_vnops.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c index 44c23ba20563..9d85bfe50886 100644 --- a/sys/fs/specfs/spec_vnops.c +++ b/sys/fs/specfs/spec_vnops.c @@ -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); diff --git a/sys/miscfs/specfs/spec_vnops.c b/sys/miscfs/specfs/spec_vnops.c index 44c23ba20563..9d85bfe50886 100644 --- a/sys/miscfs/specfs/spec_vnops.c +++ b/sys/miscfs/specfs/spec_vnops.c @@ -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); |
