update to latest 2.6.27 and 2.6.30 kernels
[openwrt/svn-archive/archive.git] / target / linux / goldfish / patches-2.6.30 / 0042-ARM-Make-low-level-printk-work.patch
1 From 0c61b75f9da1a0889959a0f9bd0b8b63f936ddf3 Mon Sep 17 00:00:00 2001
2 From: Tony Lindgren <tony@atomide.com>
3 Date: Mon, 9 May 2005 14:10:26 -0700
4 Subject: [PATCH 042/134] ARM: Make low-level printk work
5
6 Makes low-level printk work.
7
8 Signed-off-by: Tony Lindgren <tony@atomide.com>
9 ---
10 kernel/printk.c | 8 ++++++++
11 1 files changed, 8 insertions(+), 0 deletions(-)
12
13 --- a/kernel/printk.c
14 +++ b/kernel/printk.c
15 @@ -45,6 +45,10 @@ void asmlinkage __attribute__((weak)) ea
16
17 #define __LOG_BUF_LEN (1 << CONFIG_LOG_BUF_SHIFT)
18
19 +#ifdef CONFIG_DEBUG_LL
20 +extern void printascii(char *);
21 +#endif
22 +
23 /* printk's without a loglevel use this.. */
24 #define DEFAULT_MESSAGE_LOGLEVEL 4 /* KERN_WARNING */
25
26 @@ -687,6 +691,10 @@ asmlinkage int vprintk(const char *fmt,
27 sizeof(printk_buf) - printed_len, fmt, args);
28
29
30 +#ifdef CONFIG_DEBUG_LL
31 + printascii(printk_buf);
32 +#endif
33 +
34 /*
35 * Copy the output into log_buf. If the caller didn't provide
36 * appropriate log level tags, we insert them here