diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2014-07-31 14:30:03 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-08-08 16:07:26 +1000 |
commit | 451e6a755e58e692d1ec8ffb1b1416a0a0c47604 (patch) | |
tree | cb61365796c0f4ea47c5ccc0d40c045dbdbd2857 /include/console.h | |
parent | 904a3b51a20102fb504c498a55d31ce87c525643 (diff) | |
download | talos-skiboot-451e6a755e58e692d1ec8ffb1b1416a0a0c47604.tar.gz talos-skiboot-451e6a755e58e692d1ec8ffb1b1416a0a0c47604.zip |
Write log messages with log_level > PR_NOTICE only to in memory log
We modify write() (adding console_write()) which calls down to
a modified __flush_console() which can now decide if it's flushing
the added console contents to the console drivers or not.
A future patch may add support for changing PR_NOTICE to some other level
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/console.h')
-rw-r--r-- | include/console.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/console.h b/include/console.h index 791f770e..8a47bad1 100644 --- a/include/console.h +++ b/include/console.h @@ -17,6 +17,7 @@ #ifndef __CONSOLE_H #define __CONSOLE_H +#include "unistd.h" #include <lock.h> /* @@ -56,9 +57,11 @@ extern struct lock con_lock; extern bool dummy_console_enabled(void); extern void force_dummy_console(void); extern bool flush_console(void); -extern bool __flush_console(void); +extern bool __flush_console(bool flush_to_drivers); extern void set_console(struct con_ops *driver); +ssize_t console_write(bool flush_to_drivers, const void *buf, size_t count); + extern void clear_console(void); extern void memcons_add_properties(void); extern void dummy_console_add_nodes(void); |