diff options
Diffstat (limited to 'include/ntp_debug.h')
-rw-r--r-- | include/ntp_debug.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/ntp_debug.h b/include/ntp_debug.h new file mode 100644 index 000000000000..376b24b957db --- /dev/null +++ b/include/ntp_debug.h @@ -0,0 +1,26 @@ +/* + * $Header$ + * + * $Created: Sat Aug 20 14:23:01 2005 $ + * + * Copyright (C) 2005 by Frank Kardel + */ +#ifndef NTP_DEBUG_H +#define NTP_DEBUG_H + +/* + * macros for debugging output - cut down on #ifdef pollution in the code + */ + +#ifdef DEBUG +#define DPRINTF(_lvl_, _arg_) \ + if (debug >= (_lvl_)) \ + printf _arg_; +#else +#define DPRINTF(_lvl_, _arg_) +#endif + +#endif +/* + * $Log$ + */ |