contrib/gpm/gpm-1.20.3-nodebug.patch
2008-05-08 20:16:08 +10:00

16 lines
467 B
Diff

diff -pruN gpm-1.20.3.orig/src/lib/report-lib.c gpm-1.20.3/src/lib/report-lib.c
--- gpm-1.20.3.orig/src/lib/report-lib.c 2008-05-08 09:34:10.000000000 +0000
+++ gpm-1.20.3/src/lib/report-lib.c 2008-05-08 09:37:27.000000000 +0000
@@ -29,6 +29,11 @@ void gpm_report(int line, char *file, in
char *string = NULL;
int log_level;
va_list ap;
+#ifndef DEBUG_VERBOSE
+ if(stat==GPM_STAT_DEBUG)
+ return;
+#endif
+
va_start(ap,text);
switch(stat) {