aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2014-07-31 14:29:46 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-08-08 16:07:25 +1000
commit89a9ca379f2bcf618ae8796dfdd277424249da32 (patch)
treee7e8af7941352056d1e57d5e0e05593a113d59f9 /include
parente139f2558d34da0ea29f0eaae5843efa0b1aaf5c (diff)
downloadskiboot-89a9ca379f2bcf618ae8796dfdd277424249da32.zip
skiboot-89a9ca379f2bcf618ae8796dfdd277424249da32.tar.gz
skiboot-89a9ca379f2bcf618ae8796dfdd277424249da32.tar.bz2
replace printf() with console log, level 5 aka INFO messages
Replace the libc printf implementation with a wrapper that does fancy log things such as display timestamp and the log level. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include')
-rw-r--r--include/skiboot.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/skiboot.h b/include/skiboot.h
index 183590f..22777b3 100644
--- a/include/skiboot.h
+++ b/include/skiboot.h
@@ -79,6 +79,7 @@ extern struct debug_descriptor debug_descriptor;
/* General utilities */
void prlog(int log_level, const char* fmt, ...) __attribute__((format (printf, 2, 3)));
#define prerror(fmt...) do { prlog(0, fmt); } while(0)
+#define PR_PRINTF 5
/* Location codes -- at most 80 chars with null termination */
#define LOC_CODE_SIZE 80