summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@stericsson.com>2010-03-11 08:40:51 +0530
committerUlf Hansson <ulf.hansson@stericsson.com>2011-09-19 15:14:39 +0200
commitbc5207116703e9e43ae8e3b1907b1b7835b75da7 (patch)
treeebf4e4d06f8c7931902933c00c85e00945c3f4eb
parentd4e5d740706f1e190cd5130727cdf4fd638476b9 (diff)
arm: add printascii in printk option
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Change-Id: Ie73cf9782ccbf3a974383fa5d1474613c660c6b9 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/3172 Tested-by: Mian Yousaf KAUKAB <mian.yousaf.kaukab@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
-rw-r--r--arch/arm/Kconfig.debug9
-rw-r--r--kernel/printk.c2
2 files changed, 10 insertions, 1 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 81cbe40c159..5816849fa15 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -80,6 +80,15 @@ config EARLY_PRINTK
kernel low-level debugging functions. Add earlyprintk to your
kernel parameters to enable this console.
+config PRINTK_LL
+ bool "Use printascii in printk"
+ depends on DEBUG_LL
+ help
+ Say Y here if you want to have printk send its output via the
+ kernel low-level debugging functions. This is useful if you
+ are debugging code that executes before the earlyprintk console
+ is initialized.
+
config DEBUG_ICEDCC
bool "Kernel low-level debugging via EmbeddedICE DCC channel"
depends on DEBUG_LL
diff --git a/kernel/printk.c b/kernel/printk.c
index d6aa909848d..2918e7287ab 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -55,7 +55,7 @@ void asmlinkage __attribute__((weak)) early_printk(const char *fmt, ...)
#define __LOG_BUF_LEN (1 << CONFIG_LOG_BUF_SHIFT)
-#ifdef CONFIG_DEBUG_LL
+#ifdef CONFIG_PRINTK_LL
extern void printascii(char *);
#endif