[insert project logo here (125x200px max)]

Navigator

Mailinglists

Please report any errors or ommissions you find to our `Help' mailinglist, or post a message in the Forums.

Copyright and Licensing Information

Snap is (c) Jonathan T. Moore, 1999-2002 and licensed under the GNU General Public License (GPL).

All other parts of Splash are (c) Willem de Bruijn, 2002-2003 and licensed under the BSD Open Source License.

All sourcecode is made publicly available.

Acknowledgement

Splash and the Splash website are hosted by SourceForge.net

SourceForge.net Logo

osi-open source certified logo

Splash - Documentation

SNMP Plus a Lightweight API for SNAP Handling

Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

snap-1.1-wjdb/lib/d_printf.h

Go to the documentation of this file.
00001 /* $Id: d_printf.h,v 1.3 2002/12/10 18:51:49 wdebruij Exp $ */
00002 
00003 #ifndef _SNAP_DPRINTF_H_
00004 #define _SNAP_DPRINTF_H_
00005 
00006 #include <stdio.h>
00007 
00008 /*
00009     Note on using de debugging messages
00010 
00011     define NDEBUG to disable all debugging messages
00012     define DEBUG_TIMED_ALL to timestap all messages
00013 
00014     NB NDEBUG supercedes DEBUG_TIMED_ALL
00015 
00016     to globally define values add the define to Makefile.am as follows:
00017     add -D[OPTION] to AM_CFLAGS in the corresponding directory
00018 */
00019 
00020 #ifndef NDEBUG
00021 
00022 int sysctl_snap_debug_level;
00023 void set_debug_level(void);
00024 void set_debug_level_int(int);
00025 void d_printf(int , char* , ...);       /* print messages */
00026 void d_printf_timed(int , char* , ...); /* print timed messages */
00027 
00028 #else
00029 #define d_printf(lvl,fmt,arg...)
00030 #define d_printf_timed(lvl,fmt,arg...)
00031 #endif /* !NDEBUG */
00032 
00033 
00034 #endif /* !_SNAP_DPRINTF_H_ */