patch-2.1.126 linux/arch/alpha/lib/srm_printk.c

Next file: linux/arch/alpha/lib/srm_puts.c
Previous file: linux/arch/alpha/lib/srm_fixup.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.125/linux/arch/alpha/lib/srm_printk.c linux/arch/alpha/lib/srm_printk.c
@@ -0,0 +1,21 @@
+/*
+ *	arch/alpha/lib/srm_printk.c
+ */
+
+#include <linux/kernel.h>
+#include <asm/console.h>
+
+long
+srm_printk(const char *fmt, ...)
+{
+	static char buf[1024];
+        va_list args;
+        long i;
+
+        va_start(args, fmt);
+        i = vsprintf(buf,fmt,args);
+        va_end(args);
+
+	srm_puts(buf);	
+        return i;
+}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov