Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / bsd / ntp / dist / include / ntp_debug.h
blob2a42bbd6f6bc2098606151068db2dc7722e07ffe
1 /* $NetBSD$ */
3 /*
4 * $Header: /pub/NetBSD/misc/repositories/cvsroot/src/external/bsd/ntp/dist/include/ntp_debug.h,v 1.1.1.1 2009/12/13 16:54:51 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
29 * $Log$