From a76df2dc0fde313d1ecaab61d0dcd46c3cdd6151 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 14 May 2010 09:40:52 -0700 Subject: [PATCH] Add console_*printf() functions. Add support for the missing console_vprintf() and console_printf() functions. --- include/sys/console.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 include/sys/console.h diff --git a/include/sys/console.h b/include/sys/console.h new file mode 100644 index 0000000000..eff52916c6 --- /dev/null +++ b/include/sys/console.h @@ -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 */