Re: [PATCH] Re: kernel/printk.c: increasing the buffer size to capture devfsd debug messages.

From: Robert Read (
Date: Tue Feb 20 2001 - 17:05:15 EST

On Tue, Feb 20, 2001 at 02:53:04PM -0600, Thomas Dodd wrote:
> Robert Read wrote:
> Why not just make the config option in Kbytes.
> and do:

This is good idea, but I believe LOG_BUF_LEN needs to be a power of
2. A bitmask is used in several places to wrap around the end of the
ring buffer. For example


printk() {
  log_buf[(log_start+log_size) & LOG_BUF_MASK] = *p;

I think LOG_BUF_LEN could be defined to round up (or down) at compile
time, but my post-lunch-sleepy brain can't think of the trick to do

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Fri Feb 23 2001 - 21:00:23 EST