Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] What level printk?


On Sun, Aug 12, 2001 at 01:25:04AM +1000, james@xxxxxxxxxxxxxxxxxx wrote:
> Hey.
> 
> I'm trying to learn more about the Internet Protocol Suite implementation in
> Linux. I want to add a bunch of printk's in the kernel's TCP/IP code,
> recompile the kernel and watch what happens. It prints what function it's

What about using user-mode-linux(.sf.net) which would mean you have
available gdb and friends? Far friendly and less re-booting required.

> in, dumps variables to a log file etc, you know, your standard debug prints.
> 
> What level of printing should I use in printk? I hear anything less than a
> certain level and I won't see it in my terminal window. If it helps I will

I think it is 7; but that is just a guess. printk.c has all the details.

Cheers,
Anand