]>
git.ipfire.org Git - thirdparty/squid.git/blob - lib/snmplib/snmplib_debug.c
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
12 #include <sys/types.h>
16 #include "snmp_debug.h"
18 void (*snmplib_debug_hook
) (int, char *,...) = NULL
;
21 snmplib_debug(int lvl
, const char *fmt
,...)
27 if (snmplib_debug_hook
!= NULL
) {
28 vsnprintf(buf
, BUFSIZ
, fmt
, args
);
29 snmplib_debug_hook(lvl
, buf
);
31 vfprintf(stderr
, fmt
, args
);