10 int printf(const char *format
, ...);
11 int sprintf(char *str
, const char *format
, ...);
12 int snprintf(char *str
, size_t size
, const char *format
, ...);
13 #define fprintf(fd, fmt, args...) printf(fmt, ## args)
17 int vprintf(const char *format
, va_list ap
);
18 int vsprintf(char *str
, const char *format
, va_list ap
);
19 int vsnprintf(char *str
, size_t size
, const char *format
, va_list ap
);
20 int puts(const char *s
);
23 /* start.S based uart console */
24 #include <calypso/uart.h>
25 #define putchar(c) uart_putchar_wait(1, c)
26 int puts(const char *s
);
30 /* regular UART console */
32 #define putchar(c) cons_putchar(c)
33 #define _puts(s) cons_puts(s)
34 #define ARCH_HAS_CONSOLE
38 /* sercomm based console */
39 #include <comm/sercomm_cons.h>
40 #define putchar(c) sercomm_putchar(c)
41 #define _puts(s) sercomm_puts(s)
42 #define ARCH_HAS_CONSOLE
48 typedef struct __file
FILE;
51 extern void phex(unsigned int c
, unsigned int len
);