Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / ntp / include / ntp_debug.h
blob1a73e1cb116ca833f624dff2fc44d2e2c5b6adf1
1 /* $NetBSD: ntp_debug.h,v 1.2 2007/08/21 13:17:24 ghen Exp $ */
3 /*
4 * $Header: /pub/NetBSD/misc/repositories/cvsroot/src/dist/ntp/include/ntp_debug.h,v 1.3 2009/06/13 12:02:08 kardel Exp $
6 * Created: Sat Aug 20 14:23:01 2005
8 * Copyright (C) 2005 by Frank Kardel
9 */
10 #ifndef NTP_DEBUG_H
11 #define NTP_DEBUG_H
14 * macros for debugging output - cut down on #ifdef pollution in the code
17 #ifdef DEBUG
18 #define DPRINTF(_lvl_, _arg_) \
19 do { \
20 if (debug >= (_lvl_)) \
21 printf _arg_; \
22 } while (0)
23 #else
24 #define DPRINTF(_lvl_, _arg_) do {} while (0)
25 #endif
27 #endif