示例#1
0
文件: snmp_debug.c 项目: 274914765/C
void debug_combo_nc (const char *token, const char *format, ...)
{
    va_list debugargs;

    va_start (debugargs, format);
    snmp_log (LOG_DEBUG, "%s: ", token);
    snmp_vlog (LOG_DEBUG, format, debugargs);
    va_end (debugargs);
}
示例#2
0
/**
 * This snmp logging function allows variable argument list given the
 * specified format and priority.  Calls the snmp_vlog function.
 * The default logfile this function writes to is /var/log/snmpd.log.
 *
 * @see snmp_vlog
 */
int
snmp_log(int priority, const char *format, ...)
{
    va_list         ap;
    int             ret;
    va_start(ap, format);
    ret = snmp_vlog(priority, format, ap);
    va_end(ap);
    return (ret);
}
示例#3
0
文件: snmp_debug.c 项目: 274914765/C
void debugmsg (const char *token, const char *format, ...)
{
    if (debug_is_token_registered (token) == SNMPERR_SUCCESS)
    {
        va_list debugargs;

        va_start (debugargs, format);
        snmp_vlog (LOG_DEBUG, format, debugargs);
        va_end (debugargs);
    }
}