diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-07-27 17:43:05 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-08-02 17:31:12 +1000 |
commit | c90c25742ad3d41c66d88c22358ddd2a76194900 (patch) | |
tree | e2a0a86502224ae9acb462b7b98e0a772a1a30e3 /doc/console-log.rst | |
parent | cce80be2fc7d9114ea0000349cc52f0947ea00f1 (diff) | |
download | blackbird-skiboot-c90c25742ad3d41c66d88c22358ddd2a76194900.tar.gz blackbird-skiboot-c90c25742ad3d41c66d88c22358ddd2a76194900.zip |
doc/*.rst: fix ReSTructured text syntax
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'doc/console-log.rst')
-rw-r--r-- | doc/console-log.rst | 47 |
1 files changed, 26 insertions, 21 deletions
diff --git a/doc/console-log.rst b/doc/console-log.rst index fbdd33bc..9802418a 100644 --- a/doc/console-log.rst +++ b/doc/console-log.rst @@ -1,5 +1,5 @@ SkiBoot Console Log -------------------- +=================== Skiboot maintains a circular textual log buffer in memory. @@ -20,17 +20,22 @@ with prlog() calls. See timebase.h for full timebase explanation. Log level from skiboot.h: -#define PR_EMERG 0 -#define PR_ALERT 1 -#define PR_CRIT 2 -#define PR_ERR 3 -#define PR_WARNING 4 -#define PR_NOTICE 5 -#define PR_PRINTF PR_NOTICE -#define PR_INFO 6 -#define PR_DEBUG 7 -#define PR_TRACE 8 -#define PR_INSANE 9 + +=============== ========== +Define Value +=============== ========== +PR_EMERG 0 +PR_ALERT 1 +PR_CRIT 2 +PR_ERR 3 +PR_WARNING 4 +PR_NOTICE 5 +PR_PRINTF PR_NOTICE +PR_INFO 6 +PR_DEBUG 7 +PR_TRACE 8 +PR_INSANE 9 +=============== ========== The console_log_levels byte in the debug_descriptor controls what messages are written to any console drivers (e.g. fsp, uart) and @@ -40,21 +45,21 @@ This enables (advanced) users to vary what level of output they want at runtime in the memory console and through console drivers (fsp/uart) You can vary two things by poking in the debug descriptor: -a) what log level is printed at all - e.g. only turn on PR_TRACE at specific points during runtime -b) what log level goes out the fsp/uart console - defaults to PR_PRINTF - + +1. what log level is printed at all + e.g. only turn on PR_TRACE at specific points during runtime +2. what log level goes out the fsp/uart console, defaults to PR_PRINTF + We use two 4bit numbers (1 byte) for this in debug descriptor (saving some space, not needlessly wasting space that we may want in future). - + The default is 0x75 (7=PR_DEBUG to in memory console, 5=PR_PRINTF to drivers - + If you write 0x77 you will get debug info on uart/fsp console as well as in memory. If you write 0x95 you get PR_INSANE in memory but still only PR_NOTICE through drivers. - + People who write something like 0x1f will get a very quiet boot indeed. - + |