Messages in this thread | | | Date | Tue, 10 Dec 2002 11:41:29 -0800 | From | Andrew Morton <> | Subject | Re: move LOG_BUF_SIZE to header file |
| |
"Randy.Dunlap" wrote: > > Hi, > > I'd like to see LOG_BUF_LEN from kernel/printk.c moved to a header file > so that some non-kernel (kernel-mode) tools can know the value being > used (tools like kmsgdump or lkcd etc.). > > This patch moves LOG_BUF_LEN to include/linux/kernel.h . > Or it could go to a separate (new) header file... > > ... > -#if defined(CONFIG_X86_NUMAQ) || defined(CONFIG_IA64) > -#define LOG_BUF_LEN (65536) > -#elif defined(CONFIG_ARCH_S390) > -#define LOG_BUF_LEN (131072) > -#elif defined(CONFIG_SMP) > -#define LOG_BUF_LEN (32768) > -#else > -#define LOG_BUF_LEN (16384) /* This must be a power of two */ > -#endif > - > -#define LOG_BUF_MASK (LOG_BUF_LEN-1)
It's probably better to move all this gunk into the config system. Then your app can use CONFIG_LOG_BUF_LEN, too. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |