patch-1.3.4 linux/kernel/printk.c

Next file: linux/kernel/signal.c
Previous file: linux/kernel/module.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.3/linux/kernel/printk.c linux/kernel/printk.c
@@ -89,7 +89,7 @@
 				log_size--;
 				log_start &= LOG_BUF_LEN-1;
 				sti();
-				put_fs_byte(c,buf);
+				put_user(c,buf);
 				buf++;
 				i++;
 				cli();
@@ -115,7 +115,7 @@
 			j = log_start + log_size - count;
 			for (i = 0; i < count; i++) {
 				c = *((char *) log_buf+(j++ & (LOG_BUF_LEN-1)));
-				put_fs_byte(c, buf++);
+				put_user(c, buf++);
 			}
 			if (do_clear)
 				logged_chars = 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this