Skip to content

Commit

Permalink
ANDROID: ARM: Make low-level printk work
Browse files Browse the repository at this point in the history
Makes low-level printk work.

Signed-off-by: Tony Lindgren <[email protected]>
  • Loading branch information
tmlind authored and Dmitry Shmidt committed Jan 27, 2017
1 parent 6d6ef30 commit f9deaf1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kernel/printk/printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
#include "braille.h"
#include "internal.h"

#ifdef CONFIG_DEBUG_LL
extern void printascii(char *);
#endif

int console_printk[4] = {
CONSOLE_LOGLEVEL_DEFAULT, /* console_loglevel */
MESSAGE_LOGLEVEL_DEFAULT, /* default_message_loglevel */
Expand Down Expand Up @@ -1842,6 +1846,10 @@ asmlinkage int vprintk_emit(int facility, int level,
*/
text_len = vscnprintf(text, sizeof(textbuf), fmt, args);

#ifdef CONFIG_DEBUG_LL
printascii(text);
#endif

/* mark and strip a trailing newline */
if (text_len && text[text_len-1] == '\n') {
text_len--;
Expand Down

0 comments on commit f9deaf1

Please sign in to comment.