lkml.org 
[lkml]   [2006]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: printk's - i dont want any limit howto?
Ram wrote:
> Hi,

Hi,

> I have a driver full of printks. i am trying to understand the way
> the driver functions using printks
>
> So, i have a situation where i want all the printk's to be printed
> come whatever.

That is the normal behavior.

> I dont want any rate limiting or anything else that prevents from
> my printks from appearing on the screen or dmesg.
>
> Its really confusing when only one of your printks appear and some
> just dont appear even though you expect them to appear.
>
> Is there any way to make all the printks to appear come what may?.
> If so, how do i do it?.
>
> Went through the printk.c am not sure setting the
> printk_ratelimit_jiffies = 0 and printk_ratelimit_burst= 1000 will do?
>
> am not sure if printk_ratelimit_jiffies = 0 is valid.

These are just used by "printk_ratelimit()" in constructs such as:

if (printk_ratelimit())
printk(KERN_INFO "some message that may appear very often");
If you simply use printk, there should be no rate limiting.

> please advice.

I would say your printk's are not getting called at all or the log level
of the messages is not sufficient for them to appear on the console or
on the log. See Documentation/filesystems/proc.txt ->
proc/sys/kernel/printk and syslog(2) for more documentation on this.
I hope this helps,

--
Paulo Marques - www.grupopie.com

Pointy-Haired Boss: I don't see anything that could stand in our way.
Dilbert: Sanity? Reality? The laws of physics?
-
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/

\
 
 \ /
  Last update: 2006-06-01 15:42    [from the cache]
©2003-2011 Jasper Spaans