mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-22 20:55:44 +08:00
Include proper headers, format and use vprintk()
This commit is contained in:
parent
47944816cc
commit
a67b3a998b
@ -16,8 +16,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <stdarg.h>
|
||||
#include <freebsd/machine/rtems-bsd-config.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
|
||||
@ -30,7 +32,6 @@ log(int level, const char *fmt, ...)
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
printk(fmt, ap);
|
||||
vprintk(fmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user