aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2017-04-20 17:15:00 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-04-27 14:16:19 +1000
commitba4d46fdd9eb3543ec9841efc8f504c21a5f9a48 (patch)
tree8235f246c995d25abec1ad97a9cbadd598b72909 /include
parentb74841db759d33d6823a8f39603e07319b90103b (diff)
downloadskiboot-ba4d46fdd9eb3543ec9841efc8f504c21a5f9a48.zip
skiboot-ba4d46fdd9eb3543ec9841efc8f504c21a5f9a48.tar.gz
skiboot-ba4d46fdd9eb3543ec9841efc8f504c21a5f9a48.tar.bz2
console: Set log level from nvram
This adds two new nvram options to set the console log level for the driver/uart and in memory. These are called log-level-memory and log-level-driver. These are only set once we have nvram inited. To set them you do: nvram -p ibm,skiboot --update-config log-level-memory=9 nvram -p ibm,skiboot --update-config log-level-driver=9 You can also use the named versions of emerg, alert, crit, err, warning, notice, printf, info, debug, trace or insane. ie. nvram -p ibm,skiboot --update-config log-level-driver=insane Suggested-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Neuling <mikey@neuling.org> Reviewed-by: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/skiboot.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/skiboot.h b/include/skiboot.h
index 2b1f8a5..5c8b0c8 100644
--- a/include/skiboot.h
+++ b/include/skiboot.h
@@ -91,7 +91,9 @@ static inline bool opal_booting(void)
return !(debug_descriptor.state_flags & OPAL_BOOT_COMPLETE);
}
-/* Console logging */
+/* Console logging
+ * Update console_get_level() if you add here
+ */
#define PR_EMERG 0
#define PR_ALERT 1
#define PR_CRIT 2