[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>
This commit is contained in:
committed by
Paul Mackerras
parent
776568d4c9
commit
4d404edce3
@@ -132,3 +132,8 @@ void xmon_printf(const char *format, ...)
|
|||||||
va_end(args);
|
va_end(args);
|
||||||
xmon_write(xmon_outbuf, n);
|
xmon_write(xmon_outbuf, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void xmon_puts(const char *str)
|
||||||
|
{
|
||||||
|
xmon_write(str, strlen(str));
|
||||||
|
}
|
||||||
|
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
extern int xmon_putchar(int c);
|
extern int xmon_putchar(int c);
|
||||||
extern int xmon_getchar(void);
|
extern int xmon_getchar(void);
|
||||||
|
extern void xmon_puts(const char *);
|
||||||
extern char *xmon_gets(char *, int);
|
extern char *xmon_gets(char *, int);
|
||||||
extern void xmon_printf(const char *, ...);
|
extern void xmon_printf(const char *, ...);
|
||||||
extern void xmon_map_scc(void);
|
extern void xmon_map_scc(void);
|
||||||
|
@@ -833,7 +833,7 @@ cmds(struct pt_regs *excp)
|
|||||||
mdelay(2000);
|
mdelay(2000);
|
||||||
return cmd;
|
return cmd;
|
||||||
case '?':
|
case '?':
|
||||||
printf(help_string);
|
xmon_puts(help_string);
|
||||||
break;
|
break;
|
||||||
case 'b':
|
case 'b':
|
||||||
bpt_cmds();
|
bpt_cmds();
|
||||||
|
Reference in New Issue
Block a user