X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/21a24f90c5aaaaf13f91716208b32cde163c5918..8590a76bcc7cbe1443abf37498f824a0eab0c8d7:/include/debug.h diff --git a/include/debug.h b/include/debug.h index 7c19e40..39c15b0 100644 --- a/include/debug.h +++ b/include/debug.h @@ -1,9 +1,17 @@ +/* + * (C) Copyright 2014 Leo C. + * + * (C) Copyright 2000-2009 + * Wolfgang Denk, DENX Software Engineering, wd@denx.de. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + #ifndef DEBUG_H_ #define DEBUG_H_ #include "common.h" -#include #ifdef DEBUG #define _DEBUG 1 @@ -11,6 +19,11 @@ #define _DEBUG 0 #endif +/* + * Output a debug text when condition "cond" is met. The "cond" should be + * computed by a preprocessor in the best case, allowing for the best + * optimization. + */ #define debug_cond(cond, fmt, args...) \ do { \ if (cond) \ @@ -35,4 +48,3 @@ void printfreelist(const char * title); #endif /* DEBUG_H_ */ -