aboutsummaryrefslogtreecommitdiff
path: root/include/apos
diff options
context:
space:
mode:
Diffstat (limited to 'include/apos')
-rw-r--r--include/apos/attrs.h4
-rw-r--r--include/apos/debug.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/include/apos/attrs.h b/include/apos/attrs.h
index 76ef39f..0cb167c 100644
--- a/include/apos/attrs.h
+++ b/include/apos/attrs.h
@@ -33,6 +33,10 @@
*/
#define __fmt(x, y) __attribute__((format(__printf__, x, y)))
+
+/** Printf formatting attribute to not confuse doxygen. */
+#define __printf __fmt(1, 2)
+
/**
* Align object.
*
diff --git a/include/apos/debug.h b/include/apos/debug.h
index 6263ea2..f703974 100644
--- a/include/apos/debug.h
+++ b/include/apos/debug.h
@@ -326,7 +326,7 @@ enum serial_dev {
*
* @param fmt Format string. Integer subset of normal printf formatting.
*/
-void dbg(const char *fmt, ...) __fmt(1, 2);
+void __printf dbg(const char *fmt, ...);
/**
* Initialize debugging, set up serial driver etc.