Include proper headers, format and use vprintk()

This commit is contained in:
Sebastian Huber 2012-04-17 14:43:27 +02:00
parent 47944816cc
commit a67b3a998b

View File

@ -16,8 +16,10 @@
* *
*/ */
#include <fcntl.h> #include <freebsd/machine/rtems-bsd-config.h>
#include <stdarg.h>
#include <freebsd/sys/types.h>
#include <freebsd/sys/systm.h>
/* /*
* Log writes to the log buffer, and guarantees not to sleep (so can be * Log writes to the log buffer, and guarantees not to sleep (so can be
@ -30,7 +32,6 @@ log(int level, const char *fmt, ...)
va_list ap; va_list ap;
va_start(ap, fmt); va_start(ap, fmt);
printk(fmt, ap); vprintk(fmt, ap);
va_end(ap); va_end(ap);
} }