File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / ntp / include / ntp_debug.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:08:38 2012 UTC (12 years, 1 month ago) by misho
Branches: ntp, MAIN
CVS tags: v4_2_6p5p0, v4_2_6p5, HEAD
ntp 4.2.6p5

/*
 * $Header: /usr/local/www/users/anoncvs/cvs/embedaddon/ntp/include/ntp_debug.h,v 1.1.1.1 2012/05/29 12:08:38 misho 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
/*
 * $Log: ntp_debug.h,v $
 * Revision 1.1.1.1  2012/05/29 12:08:38  misho
 * ntp 4.2.6p5
 *
 */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>