Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.14-pre8 /kernel/printk.c

Filename:/kernel/printk.c
Lines Added:8
Lines Deleted:0
Also changed in: (Previous) 2.4.13-ac7  2.4.13-ac6  2.4.10  2.4.10-pre15  2.4.10-pre14  2.4.10-pre13 
(Following) 2.4.14  2.4.15-pre3  2.4.15-pre4  2.4.15-pre5  2.4.15-pre6  2.4.15-pre7 

Location
[  2.4.14-pre8
  [  kernel
     o  printk.c

Patch

diff -u --recursive --new-file v2.4.13/linux/kernel/printk.c linux/kernel/printk.c
--- v2.4.13/linux/kernel/printk.c   Sun Sep 23 11:41:01 2001
+++ linux/kernel/printk.c   Fri Nov  2 17:29:14 2001
@@ -24,10 +24,18 @@
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/interrupt.h>         /* For in_interrupt() */
+#include <linux/config.h>
 
 #include <asm/uaccess.h>
 
+#ifdef CONFIG_MULTIQUAD
+#define LOG_BUF_LEN   (65536)
+#elif defined(CONFIG_SMP)
+#define LOG_BUF_LEN   (32768)
+#else   
 #define LOG_BUF_LEN   (16384)         /* This must be a power of two */
+#endif
+
 #define LOG_BUF_MASK   (LOG_BUF_LEN-1)
 
 /* printk's without a loglevel use this.. */


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.