summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2006-11-08 02:16:37 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:26:51 +0200
commit0b668f95ad59420f80e237f97747649c7b86d123 (patch)
tree46ff874916a20b1d7bc5f9c04f9ee9e155ec6fc2 /kern
parent2a6fbda081b27496749c9983839e534930334a04 (diff)
2006-11-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
[task #5726 --- ``GCC built-in functions''] * include/printf.h (iprintf): Fix prototype. (vprintf): Add prototype. * kern/printf.c: Include `printf.h'. (vprintf, printf): Fix prototype and return a dumb value.
Diffstat (limited to 'kern')
-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;