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
, void *ptr
)
12 int *cnt
= (int *) ptr
;
18 vcprintf(const char *fmt
, va_list ap
)
22 vprintfmt(&putch
, &cnt
, fmt
, ap
);
27 cprintf(const char *fmt
, ...)
33 cnt
= vcprintf(fmt
, ap
);