Commit 4d404edce30f911004850d472e05a31efd751662

Authored by Ishizaki Kou
Committed by Paul Mackerras
1 parent 776568d4c9

[POWERPC] fix showing xmon help

In some configuration, xmon help string is larger than xmon_printf
buffer.  We need not to use printf.  This patch adds xmon_puts and
change to use it to show help string.

Signed-off-by: Kou Ishizaki <kou.ishizaki@toshiba.co.jp>
Signed-off-by: Paul Mackerras <paulus@samba.org>

Showing 3 changed files with 7 additions and 1 deletions Side-by-side Diff

arch/powerpc/xmon/nonstdio.c
... ... @@ -132,4 +132,9 @@
132 132 va_end(args);
133 133 xmon_write(xmon_outbuf, n);
134 134 }
  135 +
  136 +void xmon_puts(const char *str)
  137 +{
  138 + xmon_write(str, strlen(str));
  139 +}
arch/powerpc/xmon/nonstdio.h
... ... @@ -5,6 +5,7 @@
5 5  
6 6 extern int xmon_putchar(int c);
7 7 extern int xmon_getchar(void);
  8 +extern void xmon_puts(const char *);
8 9 extern char *xmon_gets(char *, int);
9 10 extern void xmon_printf(const char *, ...);
10 11 extern void xmon_map_scc(void);
arch/powerpc/xmon/xmon.c
... ... @@ -833,7 +833,7 @@
833 833 mdelay(2000);
834 834 return cmd;
835 835 case '?':
836   - printf(help_string);
  836 + xmon_puts(help_string);
837 837 break;
838 838 case 'b':
839 839 bpt_cmds();