summaryrefslogtreecommitdiff
path: root/include/ntp_debug.h
diff options
context:
space:
mode:
authorOllivier Robert <roberto@FreeBSD.org>2008-08-18 14:26:05 +0000
committerOllivier Robert <roberto@FreeBSD.org>2008-08-18 14:26:05 +0000
commitff717da2cf625e3d07537a93a4c240692fa55bd6 (patch)
tree9dcf618e4446ac2b5fca7d0afe7767382664f0d6 /include/ntp_debug.h
parentcce65f439697627afbccf5a67035a957bb4d784a (diff)
Notes
Diffstat (limited to 'include/ntp_debug.h')
-rw-r--r--include/ntp_debug.h26
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$
+ */