mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add console_*printf() functions.
Add support for the missing console_vprintf() and console_printf() functions.
This commit is contained in:
parent
6020190e8f
commit
a76df2dc0f
1 changed files with 20 additions and 0 deletions
20
include/sys/console.h
Normal file
20
include/sys/console.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#ifndef _SPL_CONSOLE_H
|
||||
#define _SPL_CONSOLE_H
|
||||
|
||||
void
|
||||
console_vprintf(const char *fmt, va_list args)
|
||||
{
|
||||
vprintk(fmt, args);
|
||||
}
|
||||
|
||||
void
|
||||
console_printf(const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
||||
va_start(args, fmt);
|
||||
console_vprintf(fmt, args);
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
#endif /* _SPL_CONSOLE_H */
|
||||
Loading…
Reference in a new issue