Why is the snmp error message "truncating unsigned value to 32 bits" moved to a debugging message in net-snmp-5.3.2.2-9.el5 or later?

Solution Verified - Updated -

Issue

  • RHEL5 system is using net-snmp-5.3.2.2-7.el5 and snmp reported the following error message after the system was rebooted.
    truncating unsigned value to 32 bits (11)
  • Above error message has been moved to a debugging message in net-snmp-5.3.2.2-9.el5 or later with the following patch of BZ#528164.

  • net-snmp-5.3.2.2-truncate-32.patch

    528164: Spurious "truncating unsigned value" errors

    Source: upstream, SVN rev. 16762

    --- net-snmp/snmplib/asn1.c     (revision 16761)
    +++ net-snmp/snmplib/asn1.c     (revision 16762)
    @@ -220,13 +220,13 @@
                 x = 0 - (x & 0xffffffff);
             }
             if (trunc)
    -            snmp_log(LOG_ERR,"truncating signed value to 32 bits (%d)\n",y); 
    +            DEBUGMSG(("asn","truncating signed value to 32 bits (%d)\n",y)); 
         } while(0)

     #  define CHECK_OVERFLOW_U(x,y) do { 
             if (x > UINT32_MAX) {
                 x &= 0xffffffff; 
    -            snmp_log(LOG_ERR,"truncating unsigned value to 32 bits (%d)\n",y); 
    +            DEBUGMSG(("asn","truncating unsigned value to 32 bits (%d)\n",y)); 
             }
         } while(0)
     #endif
  • Why has it been moved to a debugging message?
  • What are values which can be greater than 32 bits length, for instance?
  • Exactly what does the parenthesized number (e.g. "(11)") shown in the end of   the message mean?

Environment

  • Red Hat Enterprise Linux 5 Update 4
  • net-snmp-5.3.2.2-7.el5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content