mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-08-08 21:49:06 -04:00
31 lines
497 B
C
31 lines
497 B
C
/* $NetBSD: ntp_debug.h,v 1.1.1.2 2012/01/31 21:23:13 kardel Exp $ */
|
|
|
|
/*
|
|
* 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_) \
|
|
do { \
|
|
if (debug >= (_lvl_)) \
|
|
printf _arg_; \
|
|
} while (0)
|
|
#else
|
|
#define DPRINTF(_lvl_, _arg_) do {} while (0)
|
|
#endif
|
|
|
|
#endif
|
|
/*
|
|
* Log
|
|
*/
|