Blame SOURCES/gpm-1.20.1-lib-silent.patch

a1ffe7
--- gpm-1.20.1/src/lib/report-lib.c.lib-silent	2002-12-24 23:57:16.000000000 +0100
a1ffe7
+++ gpm-1.20.1/src/lib/report-lib.c	2006-01-18 17:55:38.000000000 +0100
a1ffe7
@@ -24,8 +24,16 @@
a1ffe7
 
a1ffe7
 #include "headers/message.h"
a1ffe7
 
a1ffe7
+static int gpm_silent() {
a1ffe7
+   if ( getenv( "GPM_VERBOSE" ) == NULL ) return 1;
a1ffe7
+   return 0;
a1ffe7
+}
a1ffe7
+
a1ffe7
 void gpm_report(int line, char *file, int stat, char *text, ... )
a1ffe7
 {
a1ffe7
+   if ( gpm_silent() && stat != GPM_STAT_OOPS )
a1ffe7
+      return;
a1ffe7
+
a1ffe7
    char *string = NULL;
a1ffe7
    int log_level;
a1ffe7
    va_list ap;