File: snmplib_error_subcontainer

package info (click to toggle)
net-snmp 5.9.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 38,720 kB
  • sloc: ansic: 282,878; perl: 17,704; sh: 12,151; makefile: 2,711; python: 734; xml: 663; pascal: 62; sql: 47
file content (22 lines) | stat: -rw-r--r-- 983 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Change logging on ia_addr message
 Message about error with subcontainers is just debug, not a filtered by
 keyword debug. This (along with logging options set to high in the init 
 script) made snmpd very chatty.
Author: Pik Master <pikmaster@wp.pl>
Origin: upstream, http://sourceforge.net/p/net-snmp/patches/1322/
Bug-Debian: https://bugs.debian.org/684721
Reviewed-by: Craig Small <csmall@debian.org>
Last-Update: 2019-10-10
--- a/snmplib/container.c
+++ b/snmplib/container.c
@@ -344,8 +344,8 @@
     if(x) {
         int rc = x->insert(x,k);
         if(rc)
-            snmp_log(LOG_DEBUG,"error on subcontainer '%s' insert (%d)\n",
-                     x->container_name ? x->container_name : "", rc);
+            DEBUGMSGTL(("container:insert_helper", "error on subcontainer '%s' insert (%d)\n",
+                     x->container_name ? x->container_name : "", rc));
         else {
             rc = CONTAINER_INSERT_HELPER(x->next, k);
             if(rc)