]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
define dummy macros or extern decls depending on DEBUG
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 14 Mar 2012 20:53:15 +0000 (21:53 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 15 Mar 2012 09:01:18 +0000 (10:01 +0100)
arch/arm/cpu/arm926ejs/mx28/debug.h

index 8299142006f1d4baeec21f0c6c3512874ba16964..1403a9c4b02df32eb9bdb4f4d8654b4833286963 100644 (file)
@@ -1,3 +1,9 @@
+#ifdef DEBUG
 extern void printhex(int data);
 extern void printdec(int data);
 extern void dprintf(const char *fmt, ...);
+#else
+#define printhex(d) do { } while (0)
+#define printdec(d) do { } while (0)
+#define dprintf(fmt...) do { } while (0)
+#endif