linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Kconfig allows LOG_BUF_SHIFT parameters that lead to disfunctional kernel
@ 2003-07-02 13:02 bert hubert
  0 siblings, 0 replies; only message in thread
From: bert hubert @ 2003-07-02 13:02 UTC (permalink / raw)
  To: linux-kernel

[also sent to akpm in a separate message that was posted to
 'linus-kernel@vger.kernel.org by accident] 

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.

Please apply, would've saved me a few hours of debugging.

--- init/Kconfig~	2003-07-02 14:49:28.000000000 +0200
+++ init/Kconfig	2003-07-02 14:40:53.000000000 +0200
@@ -93,7 +93,8 @@
 	  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



-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-02 12:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-02 13:02 [PATCH] Kconfig allows LOG_BUF_SHIFT parameters that lead to disfunctional kernel bert hubert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).