aboutsummaryrefslogtreecommitdiffstats
path: root/include/os
diff options
context:
space:
mode:
Diffstat (limited to 'include/os')
-rw-r--r--include/os/freebsd/spl/sys/console.h17
-rw-r--r--include/os/linux/spl/sys/console.h17
2 files changed, 4 insertions, 30 deletions
diff --git a/include/os/freebsd/spl/sys/console.h b/include/os/freebsd/spl/sys/console.h
index abf3db756..a0bf8175e 100644
--- a/include/os/freebsd/spl/sys/console.h
+++ b/include/os/freebsd/spl/sys/console.h
@@ -29,20 +29,7 @@
#ifndef _SPL_CONSOLE_H
#define _SPL_CONSOLE_H
-static inline void
-console_vprintf(const char *fmt, va_list args)
-{
- vprintf(fmt, args);
-}
-
-static inline void
-console_printf(const char *fmt, ...)
-{
- va_list args;
-
- va_start(args, fmt);
- console_vprintf(fmt, args);
- va_end(args);
-}
+#define console_vprintf vprintf
+#define console_printf printf
#endif /* _SPL_CONSOLE_H */
diff --git a/include/os/linux/spl/sys/console.h b/include/os/linux/spl/sys/console.h
index 3469cb762..33c8b3c6b 100644
--- a/include/os/linux/spl/sys/console.h
+++ b/include/os/linux/spl/sys/console.h
@@ -25,20 +25,7 @@
#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);
-}
+#define console_vprintf vprintk
+#define console_printf printk
#endif /* _SPL_CONSOLE_H */