--- grip-2.95/cdpar.c.or	Wed Oct 18 15:13:19 2000
+++ grip-2.95/cdpar.c	Sun May 20 23:29:29 2001
@@ -45,6 +45,7 @@
 static void CDPCallback(long inpos, int function);
 static long CDPWrite(int outf, char *buffer, long num);
 
+extern gboolean do_debug;
 extern gfloat rip_percent_done;
 extern gboolean stop_thread_rip_now;
 
@@ -232,7 +233,7 @@
 
   /* full paranoia, but allow skipping */
   int out;
-  int verbose=CDDA_MESSAGE_FORGETIT;
+  int verbose= do_debug ? CDDA_MESSAGE_PRINTIT : CDDA_MESSAGE_FORGETIT;
   int i;
   long cursor,offset;
   cdrom_drive *d=NULL;
--- grip-2.95/grip.c.or	Wed Oct 18 15:13:19 2000
+++ grip-2.95/grip.c	Sun May 20 23:28:13 2001
@@ -688,7 +688,7 @@
   if(do_debug) {
     va_start(args,fmt);
 
-    vprintf(fmt,args);
+    vfprintf(stderr,fmt,args);
   }
 
   va_end(args);
@@ -5126,6 +5126,8 @@
 int main(int argc,char *argv[])
 {
   char buf[256];
+
+  setvbuf(stdout, 0, _IONBF, 0);
 
   srand(time(NULL));
 
