# HG changeset patch # User jcdutton # Date 1025103221 0 # Node ID 12628fdcc18a22b36753238674a98b151edd47fb # Parent 654705f4e7af3649fd9356e047fe4a8fe0d108c3 Disable the read_cache miss dprintf when read_cache is disabled. diff -r 654705f4e7af -r 12628fdcc18a read_cache.c --- a/read_cache.c Tue Jun 25 20:36:04 2002 +0000 +++ b/read_cache.c Wed Jun 26 14:53:41 2002 +0000 @@ -425,12 +425,11 @@ return DVD_VIDEO_LB_LEN; } } - //} else { - // result = DVDReadBlocks( self->dvd_self->file, sector, block_count, buf); - // return result; + /* Disable dprintf if read cache is disabled. */ + if(self->dvd_self->use_read_ahead) { + dprintf("DVD read cache miss! sector=%d, start=%d, end=%d\n", + sector, self->cache_start_sector, self->cache_block_count + self->cache_start_sector); } - - dprintf("DVD read cache miss! sector=%d, start=%d, end=%d\n", sector, self->cache_start_sector, self->cache_block_count + self->cache_start_sector); result = DVDReadBlocks( self->dvd_self->file, sector, block_count, buf); return result; }