patch-2.4.2 linux/arch/s390x/kernel/cpprintk.c
Next file: linux/arch/s390x/kernel/debug.c
Previous file: linux/arch/s390x/kernel/cpcmd.h
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Tue Feb 13 14:13:44 2001
- Orig file:
v2.4.1/linux/arch/s390x/kernel/cpprintk.c
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.4.1/linux/arch/s390x/kernel/cpprintk.c linux/arch/s390x/kernel/cpprintk.c
@@ -0,0 +1,25 @@
+#include "cpcmd.h"
+#include <linux/mm.h>
+#include <linux/tty_driver.h>
+#include <linux/smp_lock.h>
+#include <linux/console.h>
+#include <linux/init.h>
+
+#include <asm/uaccess.h>
+
+static char buf[1024];
+
+asmlinkage int s390printk(const char *fmt, ...)
+{
+ va_list args;
+ int i;
+ unsigned long flags;
+ spin_lock_irqsave(&console_lock, flags);
+ va_start(args, fmt);
+ i = vsprintf(&buf[0],"MSG * ",args);
+ i = vsprintf(&buf[i], fmt, args);
+ va_end(args);
+ cpcmd(buf,0,0);
+ spin_unlock_irqrestore(&console_lock, flags);
+ return i;
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)