blob: bdee37a36a82d9f5d7b85851319a3ca1178b0ec8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* $NetBSD: ntp_debug.h,v 1.3 2009/06/13 12:02:08 kardel Exp $ */
/*
* $Header: /cvsroot/src/dist/ntp/include/Attic/ntp_debug.h,v 1.3 2009/06/13 12:02:08 kardel Exp $
*
* 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_) \
do { \
if (debug >= (_lvl_)) \
printf _arg_; \
} while (0)
#else
#define DPRINTF(_lvl_, _arg_) do {} while (0)
#endif
#endif
|