]> git.pld-linux.org Git - packages/apcupsd.git/blame - nodbg.patch
configure scripts from well known location
[packages/apcupsd.git] / nodbg.patch
CommitLineData
76fc6305
ER
1https://bugzilla.redhat.com/show_bug.cgi?id=1053324
2
291cd762
ER
3--- apcupsd-3.14.13/src/drivers/snmplite/asn.cpp~ 2014-04-06 18:40:11.000000000 +0300
4+++ apcupsd-3.14.13/src/drivers/snmplite/asn.cpp 2015-09-16 16:46:03.485622689 +0300
5@@ -26,6 +26,8 @@
76fc6305
ER
6 #include <stdlib.h>
7 #include <stdio.h>
8
9+extern int debug_level;
10+
11 using namespace Asn;
12
291cd762
ER
13 // *****************************************************************************
14@@ -71,7 +73,9 @@
76fc6305
ER
15 obj = new Sequence(type);
16 break;
17 default:
18- printf("UNKNOWN ASN type=0x%02x\n", type);
291cd762
ER
19+ if (debug_level) {
20+ printf("UNKNOWN ASN type=0x%02x\n", type);
21+ }
76fc6305
ER
22 obj = NULL;
23 break;
291cd762 24 }
This page took 0.063934 seconds and 4 git commands to generate.