1 // Simple implementation of cprintf console output for the kernel,
2 // based on printfmt() and the kernel console's cputchar().
6 #include <inc/stdarg.h>
10 putch(int ch
, int *cnt
)
17 vcprintf(const char *fmt
, va_list ap
)
21 vprintfmt((void*)putch
, &cnt
, fmt
, ap
);
26 cprintf(const char *fmt
, ...)
32 cnt
= vcprintf(fmt
, ap
);