[Skiboot] [PATCH 3/4] libflash: external FL_* macros require stdio
Jeremy Kerr
jk at ozlabs.org
Tue Feb 24 11:58:50 AEDT 2015
Signed-off-by: Jeremy Kerr <jk at ozlabs.org>
---
libflash/libflash.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/libflash/libflash.h b/libflash/libflash.h
index 8e031dd..f9ec977 100644
--- a/libflash/libflash.h
+++ b/libflash/libflash.h
@@ -25,6 +25,7 @@
#define FL_DBG(fmt...) do { prlog(PR_DEBUG, fmt); } while(0)
#define FL_ERR(fmt...) do { prlog(PR_ERR, fmt); } while(0)
#else
+#include <stdio.h>
extern bool libflash_debug;
#define FL_DBG(fmt...) do { if (libflash_debug) printf(fmt); } while(0)
#define FL_INF(fmt...) do { printf(fmt); } while(0)
More information about the Skiboot
mailing list