[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>

authored by

Ishizaki Kou and committed by
Paul Mackerras
4d404edc 776568d4

+7 -1
+5
arch/powerpc/xmon/nonstdio.c
··· 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 + }
+1
arch/powerpc/xmon/nonstdio.h
··· 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);
+1 -1
arch/powerpc/xmon/xmon.c
··· 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();