Re: patch for 2.4.0 disable printk

2001-01-29 Thread Stefani Seibold
Am Montag, 29. Januar 2001 18:40 schrieb James Simmons: > > You are right... this patch make no sense on a computer system with human > > interactions. But think on tiny hidden computers, like in a dishwasher or > > a traffic light. This computer are standalone, if it crash, then it will > > be re

Re: patch for 2.4.0 disable printk

2001-01-29 Thread James Simmons
> You are right... this patch make no sense on a computer system with human > interactions. But think on tiny hidden computers, like in a dishwasher or a > traffic light. This computer are standalone, if it crash, then it will be > rebooted. > Nobody will attach a terminal to this kind of comp

Re: patch for 2.4.0 disable printk

2001-01-29 Thread Paul Gortmaker
Andrew Morton wrote: > > Stefani Seibold wrote: > > > > Second, i had change the macro so it calls now a inline funciton > > printk_inline which always return 0. So it should be now compatibel to the > > standard printk funciton. > > A #define is better. > > You see, even if printk is a null in

Re: patch for 2.4.0 disable printk

2001-01-28 Thread Jamie Lokier
Stefani Seibold wrote: > The inline function is the best choice, because it it full compatible to old > old printk. No side effects are expeted. What is the difference? I can't think of any difference between: #define printk(format, args...) ((int) 0) and: static inline int printk_inline

Re: patch for 2.4.0 disable printk and panic messages, third try

2001-01-28 Thread Dmitry A. Fedorov
On Sun, 28 Jan 2001, Stefani Seibold wrote: > this is now the third try to release my patch for disabling all kernel > messages. It is usefull on deep embedded systems with no human interactions > --- linux/arch/s390/config.in Thu Nov 16 21:51:28 2000 > +++ linux.noprintk/arch/s390/config.in

Re: patch for 2.4.0 disable printk and panic messages, third try

2001-01-28 Thread Abramo Bagnara
Stefani Seibold wrote: > > Hi guys, > > this is now the third try to release my patch for disabling all kernel > messages. It is usefull on deep embedded systems with no human interactions > and for rescue discs where the diskspace is always to less. > > This patch has now the following feature

Re: patch for 2.4.0 disable printk

2001-01-28 Thread Stefani Seibold
Hi Andrew, thanks for your feddback, but... you are not right. Because i override the printk with a macro thats call a inline function printk_inline with no paramters and only return 0. So the compiler sill removes the paramters. If you try this patch, you will see, that none of the parameters

Re: patch for 2.4.0 disable printk

2001-01-27 Thread Andrew Morton
Stefani Seibold wrote: > > Second, i had change the macro so it calls now a inline funciton > printk_inline which always return 0. So it should be now compatibel to the > standard printk funciton. A #define is better. You see, even if printk is a null inline function, printk("foo"); w

Re: patch for 2.4.0 disable printk

2001-01-27 Thread Stefani Seibold
Hi guys, thanks for the feedback. This is now the second try of my disable printk patch. First i moved the option for disabling the prinbtk messages form the menu character devices to kernel hacking. Second, i had change the macro so it calls now a inline funciton printk_inline which always

Re: patch for 2.4.0 disable printk

2001-01-27 Thread Stefani Seibold
You are right... this patch make no sense on a computer system with human interactions. But think on tiny hidden computers, like in a dishwasher or a traffic light. This computer are standalone, if it crash, then it will be rebooted. Nobody will attach a terminal to this kind of computer, nobod

Re: patch for 2.4.0 disable printk

2001-01-27 Thread Thunder from the hill
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 textcons

Re: patch for 2.4.0 disable printk

2001-01-26 Thread David Weinehall
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