From: Stefan E. <se...@us...> - 2002-05-13 09:37:44
|
Update of /cvsroot/blob/blob/src/lib In directory usw-pr-cvs1:/tmp/cvs-serv29824 Modified Files: generic_io.c Log Message: - output progress during io_copy() unless IO_QUIET is defined Index: generic_io.c =================================================================== RCS file: /cvsroot/blob/blob/src/lib/generic_io.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- generic_io.c 10 May 2002 15:36:24 -0000 1.5 +++ generic_io.c 13 May 2002 09:37:41 -0000 1.6 @@ -47,6 +47,7 @@ #define IO_MODULE_TEST 0 #define IO_DEBUG 1 +#undef IO_QUIET #if IO_DEBUG # define DBG( x, args... ) if ( io_dbg>x ) printf( args ) @@ -276,7 +277,9 @@ } else { to_copy = amount; } - DBG( 1, "%s: block %d/%d (%d bytes)\n", __FUNCTION__, block+1, blocks, to_copy ); +#if !defined(IO_QUIET) + printf( "%s: block %d/%d (%d bytes to go) \r", __FUNCTION__, block+1, blocks, amount ); +#endif /* read from source */ ret = io_read( buffer, adr, to_copy, src ); |