* problems with printk's
@ 2006-04-25 12:00 Ram
2006-04-25 13:16 ` linux-os (Dick Johnson)
0 siblings, 1 reply; 3+ messages in thread
From: Ram @ 2006-04-25 12:00 UTC (permalink / raw)
To: linux-kernel
Hi,
i am studing a driver's code.
i have added a line printk (KERN_DEBUG __FUNCTION) which is supposed to
print the name of the function.
I want to trace the program - what is happening.
When i see the output of the driver using dmesg
Only some of the prints are visible (some of them are not printed
even though they
must get printed. i dont know why this is happening.
Is there any limit on printk (like number of messages....)
How do i disable (ie printk should print irrespective of any limit
or anything).
Regard,,
sriram
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: problems with printk's
2006-04-25 12:00 problems with printk's Ram
@ 2006-04-25 13:16 ` linux-os (Dick Johnson)
0 siblings, 0 replies; 3+ messages in thread
From: linux-os (Dick Johnson) @ 2006-04-25 13:16 UTC (permalink / raw)
To: Ram; +Cc: Linux kernel
On Tue, 25 Apr 2006, Ram wrote:
> Hi,
> i am studing a driver's code.
>
> i have added a line printk (KERN_DEBUG __FUNCTION) which is supposed to
> print the name of the function.
>
[SNIPPED...]
How about you use the correct built-in and syntax?
printk(KERN_DEBUG"%s\n",__FUNCTION__);
Cheers,
Dick Johnson
Penguin : Linux version 2.6.16.4 on an i686 machine (5592.89 BogoMips).
Warning : 98.36% of all statistics are fiction, book release in April.
_
\x1a\x04
****************************************************************
The information transmitted in this message is confidential and may be privileged. Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@analogic.com - and destroy all copies of this information, including any attachments, without reading or disclosing them.
Thank you.
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: problems with printk's
@ 2006-04-25 12:09 biswa.nayak
0 siblings, 0 replies; 3+ messages in thread
From: biswa.nayak @ 2006-04-25 12:09 UTC (permalink / raw)
To: vshrirama, linux-kernel
When i see the output of the driver using dmesg
Only some of the prints are visible (some of them are not printed even
though they
must get printed. i dont know why this is happening.
Is there any limit on printk (like number of messages....)
How do i disable (ie printk should print irrespective of any limit or
anything).
Please check '/proc/sys/kernel/printk_ratelimit' and
'/proc/sys/kernel/printk_ratelimit_burst'. The printk_ratelimit tells
your system to stop logging messages for 'n' number of seconds and
printk_ratelimit_burst tells the number of messages to allow before rate
limiting. You can change these values to allow more messages.
Warning: You can generate so many messages that the system can get
unresponsive, and the buffer for kernel log message is also of fixed
sized circular buffer. So if you write too many messages, you might
overwrite some of your old useful logs too. Hope this helps.
~Biswa
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-04-25 13:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-25 12:00 problems with printk's Ram
2006-04-25 13:16 ` linux-os (Dick Johnson)
2006-04-25 12:09 biswa.nayak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®