aboutsummaryrefslogtreecommitdiff
path: root/libflash
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2015-02-24 08:58:50 +0800
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-02-26 16:32:44 +1100
commit0a8baf26a55729c86ea84c1068d469d2a2e1c8e1 (patch)
tree1cd1427daca2f4e45152588b7616693c6a8e6d32 /libflash
parent8d2eacb522bbd2cfbc982b68d349d3257ba1e2f2 (diff)
downloadskiboot-0a8baf26a55729c86ea84c1068d469d2a2e1c8e1.zip
skiboot-0a8baf26a55729c86ea84c1068d469d2a2e1c8e1.tar.gz
skiboot-0a8baf26a55729c86ea84c1068d469d2a2e1c8e1.tar.bz2
libflash: external FL_* macros require stdio
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Reviewed-By: Joel Stanley <joel@jms.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libflash')
-rw-r--r--libflash/libflash.h1
1 files changed, 1 insertions, 0 deletions
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)