mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03: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
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 New Issue
Block a user