Skip to content

Commit

Permalink
[POWERPC] fix showing xmon help
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ishizaki Kou authored and Paul Mackerras committed Jul 22, 2007
1 parent 776568d commit 4d404ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions arch/powerpc/xmon/nonstdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,8 @@ void xmon_printf(const char *format, ...)
va_end(args);
xmon_write(xmon_outbuf, n);
}

void xmon_puts(const char *str)
{
xmon_write(str, strlen(str));
}
1 change: 1 addition & 0 deletions arch/powerpc/xmon/nonstdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

extern int xmon_putchar(int c);
extern int xmon_getchar(void);
extern void xmon_puts(const char *);
extern char *xmon_gets(char *, int);
extern void xmon_printf(const char *, ...);
extern void xmon_map_scc(void);
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/xmon/xmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ cmds(struct pt_regs *excp)
mdelay(2000);
return cmd;
case '?':
printf(help_string);
xmon_puts(help_string);
break;
case 'b':
bpt_cmds();
Expand Down

0 comments on commit 4d404ed

Please sign in to comment.