]>
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
16 command_ret_t
do_dump_mem(cmd_tbl_t
*, uint_fast8_t, int, char * const []);
17 command_ret_t
do_mem_mm_avr(cmd_tbl_t
*, uint_fast8_t, int, char * const []);
18 command_ret_t
do_mem_nm_avr(cmd_tbl_t
*, uint_fast8_t, int, char * const []);
19 command_ret_t
do_eep_cp(cmd_tbl_t
*, uint_fast8_t, int, char * const []);
20 command_ret_t
do_pr_free_avr(cmd_tbl_t
*, uint_fast8_t, int, char * const []);
21 command_ret_t
do_pr_heap_avr(cmd_tbl_t
*, uint_fast8_t, int, char * const []);
23 void printfreelist(const char * title
);
34 * Output a debug text when condition "cond" is met. The "cond" should be
35 * computed by a preprocessor in the best case, allowing for the best
38 #define debug_cond(cond, fmt, args...) \
41 printf_P(PSTR(fmt), ##args); \
44 #define debug(fmt, args...) \
45 debug_cond(_DEBUG, fmt, ##args)
50 #define DBG_P(lvl, format, ...) if (DEBUG>=lvl) \
51 fprintf_P( stdout, PSTR(format), ##__VA_ARGS__ )
53 #define DBG_P(lvl, ...)