gpm/gpm-1.20.1-nolibmessages.patch

22 lines
825 B
Diff
Raw Normal View History

diff -ru gpm-1.20.1.orig/src/lib/report-lib.c gpm-1.20.1/src/lib/report-lib.c
--- gpm-1.20.1.orig/src/lib/report-lib.c 2005-02-01 15:16:51.000000000 +0100
+++ gpm-1.20.1/src/lib/report-lib.c 2005-02-01 15:41:32.000000000 +0100
@@ -37,9 +37,12 @@
case GPM_STAT_DEBUG: string = GPM_TEXT_DEBUG; break;
case GPM_STAT_OOPS : string = GPM_TEXT_OOPS; break;
}
- fprintf(stderr,"%s[%s(%d)]:\n",string,file,line);
- vfprintf(stderr,text,ap);
- fprintf(stderr,"\n");
-
- if(stat == GPM_STAT_OOPS) exit(1); /* may a lib function call exit ???? */
+
+ // Patch: print to stderr only OOPS
+ if(stat == GPM_STAT_OOPS) {
+ fprintf(stderr,"%s[%s(%d)]:\n",string,file,line);
+ vfprintf(stderr,text,ap);
+ fprintf(stderr,"\n");
+ exit(1); /* may a lib function call exit ???? */
+ }
}