diff --git a/rtemsbsd/src/rtems-bsd-log.c b/rtemsbsd/src/rtems-bsd-log.c index 361b8a7f..c7b8d235 100644 --- a/rtemsbsd/src/rtems-bsd-log.c +++ b/rtemsbsd/src/rtems-bsd-log.c @@ -16,8 +16,10 @@ * */ -#include -#include +#include + +#include +#include /* * Log writes to the log buffer, and guarantees not to sleep (so can be @@ -27,10 +29,9 @@ void log(int level, const char *fmt, ...) { - va_list ap; + va_list ap; - va_start(ap, fmt); - printk(fmt, ap); - va_end(ap); + va_start(ap, fmt); + vprintk(fmt, ap); + va_end(ap); } -