summaryrefslogtreecommitdiff
path: root/include/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/debug.h')
-rw-r--r--include/debug.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/debug.h b/include/debug.h
index da8e9a0..39c15b0 100644
--- a/include/debug.h
+++ b/include/debug.h
@@ -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_
@@ -10,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) \