f1bf48dd544d404bdd99d17c8c926231a27e5168
[openwrt.git] / target / linux / cns21xx / patches-3.3 / 002-arm-debugll-printk.patch
1 --- a/kernel/printk.c
2 +++ b/kernel/printk.c
3 @@ -44,6 +44,10 @@
4  
5  #include <asm/uaccess.h>
6  
7 +#ifdef CONFIG_DEBUG_LL
8 +extern void printascii(char *);
9 +#endif /* CONFIG_DEBUG_LL */
10 +
11  /*
12   * Architectures can override it:
13   */
14 @@ -900,6 +904,10 @@ asmlinkage int vprintk(const char *fmt,
15                 }
16         }
17  
18 +#ifdef CONFIG_DEBUG_LL
19 +       printascii(printk_buf);
20 +#endif
21 +
22         /*
23          * Copy the output into log_buf. If the caller didn't provide
24          * the appropriate log prefix, we insert them here