summaryrefslogtreecommitdiff
path: root/gpm-1.20.1-lib-silent.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-05 02:17:39 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-05 02:17:39 +0000
commit9d5165866832c84d122aefd4ecf4f244a58a1568 (patch)
tree2744509894b854661a2563e05a425bfd535f0e0e /gpm-1.20.1-lib-silent.patch
parent38bccab72afcaa731ea88a9beb69caf667f31762 (diff)
automatic import of gpmopeneuler24.03_LTS
Diffstat (limited to 'gpm-1.20.1-lib-silent.patch')
-rw-r--r--gpm-1.20.1-lib-silent.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/gpm-1.20.1-lib-silent.patch b/gpm-1.20.1-lib-silent.patch
new file mode 100644
index 0000000..c12da41
--- /dev/null
+++ b/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, const char *file, int stat, const char *text, ... )
+ {
++ if ( gpm_silent() && stat != GPM_STAT_OOPS )
++ return;
++
+ const char *string = NULL;
+ int log_level;
+ va_list ap;