Re: a problem of how to debug codes

2007-01-08 Thread Dave Shield
On 08/01/07, Clement Hsu <[EMAIL PROTECTED]> wrote: > But I don't realize how to use DEBUGMSG( ) correct. Please see the existing code for examples. E.g. $ cd agent $ grep DEBUGMSG *.c snmp_perl.c:DEBUGMSGTL(("perl", "calling perl\n")); snmpd.c:DEBUGMSGTL(("snmpd/main", "Bye...\n

Re: a problem of how to debug codes

2007-01-08 Thread Clement Hsu
Dear Dave: Thanks a lot. But I don't realize how to use DEBUGMSG( ) correct. For example: #include #include #include #include #include "ucdSnmpTutorialMIB.h" #include #include void init_ucdSnmpTutorialMIB(void) { static oid ustSSSimpleString_oid[] = { 1, 3, 6, 1, 4, 1, 2021,

Re: a problem of how to debug codes

2007-01-07 Thread Dave Shield
On 26/12/06, Clement Hsu <[EMAIL PROTECTED]> wrote: > I meet a problem of how to debug snmp codes > the following is my code... > void > init_ustScalarSet(void) > { > > DEBUGMSGTL(("ustScalarSet", "Initializing\n")); > > REGISTER_MIB("ustScalarSet", ustScalarSet_variables, variable4, >

a problem of how to debug codes

2006-12-26 Thread Clement Hsu
Dear All: I meet a problem of how to debug snmp codes, my version is net-snmp-5.3.1 and the environment is Fedora 5. the following is my codes which comes from the net-snmp web sites samples: /* * Note: this file originally auto-generated by mib2c using *: mib2c.old-api.conf,v 1.6 2006/