summaryrefslogtreecommitdiff
path: root/kern/printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/printf.c')
-rw-r--r--kern/printf.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/kern/printf.c b/kern/printf.c
index a1f18b0..37543b3 100644
--- a/kern/printf.c
+++ b/kern/printf.c
@@ -114,6 +114,7 @@
*/
#include <string.h>
+#include <printf.h>
#include <mach/boolean.h>
#include <kern/lock.h>
#include <stdarg.h>
@@ -511,18 +512,20 @@ void _doprnt(
*/
extern void cnputc( char, /*not really*/vm_offset_t);
-void vprintf(const char *fmt, va_list listp)
+int vprintf(const char *fmt, va_list listp)
{
_doprnt(fmt, &listp, cnputc, 16, 0);
+ return 0;
}
/*VARARGS1*/
-void printf(const char *fmt, ...)
+int printf(const char *fmt, ...)
{
va_list listp;
va_start(listp, fmt);
vprintf(fmt, listp);
va_end(listp);
+ return 0;
}
int indent = 0;