]> git.proxmox.com Git - mirror_spl-debian.git/commitdiff
Add console_*printf() functions.
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 14 May 2010 16:40:52 +0000 (09:40 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 14 May 2010 16:40:52 +0000 (09:40 -0700)
Add support for the missing console_vprintf() and console_printf()
functions.

include/sys/console.h [new file with mode: 0644]

diff --git a/include/sys/console.h b/include/sys/console.h
new file mode 100644 (file)
index 0000000..eff5291
--- /dev/null
@@ -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 */