diff options
author | Ollivier Robert <roberto@FreeBSD.org> | 2008-08-18 14:26:05 +0000 |
---|---|---|
committer | Ollivier Robert <roberto@FreeBSD.org> | 2008-08-18 14:26:05 +0000 |
commit | ff717da2cf625e3d07537a93a4c240692fa55bd6 (patch) | |
tree | 9dcf618e4446ac2b5fca7d0afe7767382664f0d6 /include/ntp_debug.h | |
parent | cce65f439697627afbccf5a67035a957bb4d784a (diff) |
Notes
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$ + */ |