From: Ben Gras Date: Sat, 22 Oct 2005 02:34:27 +0000 (+0000) Subject: Don't print these scary messages either X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=9b7138b3b1880c36aa5d7edd0252a9abea64777a;p=minix.git Don't print these scary messages either --- diff --git a/servers/fs/cache.c b/servers/fs/cache.c index df2addf8e..cb4dbf521 100644 --- a/servers/fs/cache.c +++ b/servers/fs/cache.c @@ -273,8 +273,10 @@ int rw_flag; /* READING or WRITING */ if (r != block_size) { if (r >= 0) r = END_OF_FILE; if (r != END_OF_FILE) +#if FS_ERRORS printf("Unrecoverable disk error on device %d/%d, block %ld\n", (dev>>MAJOR)&BYTE, (dev>>MINOR)&BYTE, bp->b_blocknr); +#endif bp->b_dev = NO_DEV; /* invalidate block */ /* Report read errors to interested parties. */ @@ -381,10 +383,12 @@ int rw_flag; /* READING or WRITING */ if (iop->iov_size != 0) { /* Transfer failed. An error? Do we care? */ if (r != OK && i == 0) { +#if FS_ERRORS printf( "fs: I/O error on device %d/%d, block %lu\n", (dev>>MAJOR)&BYTE, (dev>>MINOR)&BYTE, bp->b_blocknr); +#endif bp->b_dev = NO_DEV; /* invalidate block */ } break;