summaryrefslogtreecommitdiff
path: root/source/a/gpm/gpm-1.20.1-lib-silent.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/gpm/gpm-1.20.1-lib-silent.patch')
-rw-r--r--source/a/gpm/gpm-1.20.1-lib-silent.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/source/a/gpm/gpm-1.20.1-lib-silent.patch b/source/a/gpm/gpm-1.20.1-lib-silent.patch
new file mode 100644
index 00000000..099075b5
--- /dev/null
+++ b/source/a/gpm/gpm-1.20.1-lib-silent.patch
@@ -0,0 +1,19 @@
+--- gpm-1.20.1/src/lib/report-lib.c.lib-silent 2002-12-24 23:57:16.000000000 +0100
++++ gpm-1.20.1/src/lib/report-lib.c 2006-01-18 17:55:38.000000000 +0100
+@@ -24,8 +24,16 @@
+
+ #include "headers/message.h"
+
++static int gpm_silent() {
++ if ( getenv( "GPM_VERBOSE" ) == NULL ) return 1;
++ return 0;
++}
++
+ void gpm_report(int line, char *file, int stat, char *text, ... )
+ {
++ if ( gpm_silent() && stat != GPM_STAT_OOPS )
++ return;
++
+ char *string = NULL;
+ va_list ap;
+ va_start(ap,text);