]>
cloudbase.mooo.com Git - z180-stamp.git/blob - include/debug.h
2 * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
4 * (C) Copyright 2000-2009
5 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
7 * SPDX-License-Identifier: GPL-2.0+
23 * Output a debug text when condition "cond" is met. The "cond" should be
24 * computed by a preprocessor in the best case, allowing for the best
27 #define debug_cond(cond, fmt, args...) \
30 printf_P(PSTR(fmt), ##args); \
33 #define debug(fmt, args...) \
34 debug_cond(_DEBUG, fmt, ##args)
39 #define DBG_P(lvl, format, ...) if (DEBUG>=lvl) \
40 fprintf_P( stdout, PSTR(format), ##__VA_ARGS__ )
42 #define DBG_P(lvl, ...)
47 void printfreelist(const char * title
);