]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Set limits on CONFIG_LOG_BUF_SHIFT
authorAndrew Morton <akpm@osdl.org>
Wed, 2 Jul 2003 15:50:11 +0000 (08:50 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 2 Jul 2003 15:50:11 +0000 (08:50 -0700)
From: bert hubert <ahu@ds9a.nl>

Attached patch adds a range check to LOG_BUF_SHIFT and clarifies the
configuration somewhat.  I managed to build a non-booting kernel because I
thought 64 was a nice power of two, which lead to the kernel blocking when
it tried to actually use or allocate a 2^64 buffer.

init/Kconfig

index d3a9874335aa1302676cbd574b464338e4772c00..ab6212b4820252c4061cdef19cc16ec2c9a98b66 100644 (file)
@@ -93,7 +93,8 @@ config SYSCTL
          limited in memory.
 
 config LOG_BUF_SHIFT
-       int "Kernel log buffer size" if DEBUG_KERNEL
+       int "Kernel log buffer size (16 => 64KB, 17 => 128KB)" if DEBUG_KERNEL
+       range 12 20
        default 17 if ARCH_S390
        default 16 if X86_NUMAQ || IA64
        default 15 if SMP