mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-23 04:07:37 +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 <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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user