]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - include/debug.h
Handle bus errors in md command
[z180-stamp.git] / include / debug.h
index 45a1d504e0499d280917327687c9b88b3c1d8e32..39c15b0ab88c77d52c568347c7031c6a6b6dc1fd 100644 (file)
@@ -1,3 +1,12 @@
+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * (C) Copyright 2000-2009
+ * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
 
 #ifndef DEBUG_H_
 #define DEBUG_H_
 #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)                       \
 #endif /* 0 */
 
 
-void dump_eep(const uint8_t *addr, unsigned int len, char *title);
-void dump_ram(const uint8_t *addr, unsigned int len, char *title);
 void printfreelist(const char * title);
 
 
 #endif /* DEBUG_H_ */
-