Re: patch for 2.4.0 disable printk

From: David Weinehall (tao@acc.umu.se)
Date: Fri Jan 26 2001 - 16:13:36 EST


On Fri, Jan 26, 2001 at 09:46:02PM +0100, Stefani Seibold wrote:
> Hi Linus,
> Hi Alan,
> Hi everybody,
>
> this kernel patch allows to disable all printk messages, by
> overloading the printk function with a dummy printk macro.
>
> This patch is usefull for embedded systems, where the hardware never
> changes and normaly no textconsole is attachted nor any user will see
> the boot messages. Also, it is nice for rescue disks.
>
> On my system this saves about 10% of disk- and ramspace.
>
> For example: My standart desktop kernel is 994834 bytes, without
> printk messages it is only 899664 bytes long. The basic kernel ram
> usage is also 10% less than the same kernel with printk messages.

This could probably be a useful hack, but I suggest you move the
config-option to the "Kernel hacking"-section.

/David
  _ _
 // David Weinehall <tao@acc.umu.se> /> Northern lights wander \\
// Project MCA Linux hacker // Dance across the winter sky //
\> http://www.acc.umu.se/~tao/ </ Full colour fire </
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jan 31 2001 - 21:00:26 EST