]> git.pld-linux.org Git - packages/apcupsd.git/blob - nodbg.patch
- updated to 3.14.14, adjusted configure patch for current autotools
[packages/apcupsd.git] / nodbg.patch
1 https://bugzilla.redhat.com/show_bug.cgi?id=1053324
2
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 @@
6  #include <stdlib.h>
7  #include <stdio.h>
8  
9 +extern int debug_level;
10 +
11  using namespace Asn;
12  
13  // *****************************************************************************
14 @@ -71,7 +73,9 @@
15        obj = new Sequence(type);
16        break;      
17     default:
18 -      printf("UNKNOWN ASN type=0x%02x\n", type);
19 +      if (debug_level) {
20 +         printf("UNKNOWN ASN type=0x%02x\n", type);
21 +      }
22        obj = NULL;
23        break;      
24     }
This page took 0.057243 seconds and 3 git commands to generate.