mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
4d404edce3
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>
16 lines
465 B
C
16 lines
465 B
C
#define EOF (-1)
|
|
|
|
#define printf xmon_printf
|
|
#define putchar xmon_putchar
|
|
|
|
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);
|
|
extern int xmon_expect(const char *str, unsigned long timeout);
|
|
extern int xmon_write(const void *ptr, int nb);
|
|
extern int xmon_readchar(void);
|
|
extern int xmon_read_poll(void);
|