/[packages]/cauldron/gpm/releases/1.20.6/5.mga1/SOURCES/gpm-1.20.1-lib-silent.patch
ViewVC logotype

Contents of /cauldron/gpm/releases/1.20.6/5.mga1/SOURCES/gpm-1.20.1-lib-silent.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 683 - (show annotations) (download)
Sat Jan 8 14:58:11 2011 UTC (13 years, 3 months ago) by schedbot
File size: 503 byte(s)
%repsys markrelease
version: 1.20.6
release: 5.mga1
revision: 679

Copying 1.20.6-5.mga1 to releases/ directory.
1 --- gpm-1.20.1/src/lib/report-lib.c.lib-silent 2002-12-24 23:57:16.000000000 +0100
2 +++ gpm-1.20.1/src/lib/report-lib.c 2006-01-18 17:55:38.000000000 +0100
3 @@ -24,8 +24,16 @@
4
5 #include "headers/message.h"
6
7 +static int gpm_silent() {
8 + if ( getenv( "GPM_VERBOSE" ) == NULL ) return 1;
9 + return 0;
10 +}
11 +
12 void gpm_report(int line, char *file, int stat, char *text, ... )
13 {
14 + if ( gpm_silent() && stat != GPM_STAT_OOPS )
15 + return;
16 +
17 char *string = NULL;
18 int log_level;
19 va_list ap;

  ViewVC Help
Powered by ViewVC 1.1.30