patch-2.4.23 linux-2.4.23/kernel/printk.c

Next file: linux-2.4.23/kernel/resource.c
Previous file: linux-2.4.23/kernel/panic.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/kernel/printk.c linux-2.4.23/kernel/printk.c
@@ -29,6 +29,7 @@
 
 #include <asm/uaccess.h>
 
+#if !defined(CONFIG_LOG_BUF_SHIFT) || (CONFIG_LOG_BUF_SHIFT == 0)
 #if defined(CONFIG_MULTIQUAD) || defined(CONFIG_IA64)
 #define LOG_BUF_LEN	(65536)
 #elif defined(CONFIG_ARCH_S390)
@@ -38,6 +39,9 @@
 #else	
 #define LOG_BUF_LEN	(16384)			/* This must be a power of two */
 #endif
+#else /* CONFIG_LOG_BUF_SHIFT */
+#define LOG_BUF_LEN (1 << CONFIG_LOG_BUF_SHIFT)
+#endif
 
 #define LOG_BUF_MASK	(LOG_BUF_LEN-1)
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)