diff read_cache.c @ 76:0e2abe7083de src

more consistent console output
author mroi
date Tue, 27 Aug 2002 19:15:08 +0000
parents bf89c194f781
children 8905d8de7e91
line wrap: on
line diff
--- a/read_cache.c	Wed Aug 21 15:25:50 2002 +0000
+++ b/read_cache.c	Tue Aug 27 19:15:08 2002 +0000
@@ -93,10 +93,10 @@
 };
 #endif
 
-#define _MT_TRACE 0
+#define READ_CACHE_TRACE 0
 
-#if _MT_TRACE
-#define dprintf(fmt, args...) fprintf(stderr, "%s: "fmt,  __func__ , ## args);
+#if READ_CACHE_TRACE
+#define dprintf(fmt, args...) fprintf(MSG_OUT, "libdvdnav: %s: "fmt,  __func__ , ## args);
 #else
 #define dprintf(fmt, args...) /* Nowt */
 #endif
@@ -312,7 +312,7 @@
   } else {
     /* Miss */
 
-    fprintf(stderr, "DVD read cache miss! (not bad but a performance hit) sector=%d\n", sector); 
+    fprintf(MSG_OUT, "libdvdnav: DVD read cache miss! (not bad but a performance hit) sector=%d\n", sector); 
     result = DVDReadBlocks( self->dvd_self->file, sector, block_count, *buf);
     self->read_point = sector+block_count;
     if(self->read_point > self->pos + self->size) {