Add comments for debug() and pr_fmt
Add a note to each of these so it is more obvious how they work.
Signed-off-by: Simon Glass <sjg@chromium.org>
diff --git a/include/common.h b/include/common.h
index 3feaae6..1bb8a79 100644
--- a/include/common.h
+++ b/include/common.h
@@ -101,6 +101,7 @@
#define _DEBUG 0
#endif
+/* Define this at the top of a file to add a prefix to debug messages */
#ifndef pr_fmt
#define pr_fmt(fmt) fmt
#endif
@@ -116,6 +117,7 @@
printf(pr_fmt(fmt), ##args); \
} while (0)
+/* Show a message if DEBUG is defined in a file */
#define debug(fmt, args...) \
debug_cond(_DEBUG, fmt, ##args)