* Not getting printk output
@ 2014-11-23 5:58 Mayank
2014-11-23 7:06 ` karthik nayak
2014-11-23 8:21 ` Philipp Muhoray
0 siblings, 2 replies; 5+ messages in thread
From: Mayank @ 2014-11-23 5:58 UTC (permalink / raw)
To: kernelnewbies
Hi,
I am trying to print something to the kernel debug log level using
printk, but while using dmesg i am not getting the output on the
console. My /proc/sys/kernel/printk setting is 4 4 1 7.
Please help
Thanks,
Mayank
^ permalink raw reply [flat|nested] 5+ messages in thread
* Not getting printk output
2014-11-23 5:58 Not getting printk output Mayank
@ 2014-11-23 7:06 ` karthik nayak
2014-11-23 8:21 ` Philipp Muhoray
1 sibling, 0 replies; 5+ messages in thread
From: karthik nayak @ 2014-11-23 7:06 UTC (permalink / raw)
To: kernelnewbies
Hello,
What debug level are you using with printk.
Regards,
Karthik
On Sun Nov 23 2014 at 11:38:39 AM Mayank <mskernel@yahoo.in> wrote:
> Hi,
> I am trying to print something to the kernel debug log level using
> printk, but while using dmesg i am not getting the output on the
> console. My /proc/sys/kernel/printk setting is 4 4 1 7.
> Please help
>
> Thanks,
> Mayank
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20141123/d729b15d/attachment.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Not getting printk output
2014-11-23 5:58 Not getting printk output Mayank
2014-11-23 7:06 ` karthik nayak
@ 2014-11-23 8:21 ` Philipp Muhoray
2014-11-23 13:19 ` karthik nayak
1 sibling, 1 reply; 5+ messages in thread
From: Philipp Muhoray @ 2014-11-23 8:21 UTC (permalink / raw)
To: kernelnewbies
Am 2014-11-23 um 06:58 schrieb Mayank:
> Hi,
> I am trying to print something to the kernel debug log level using
> printk, but while using dmesg i am not getting the output on the
> console. My /proc/sys/kernel/printk setting is 4 4 1 7.
> Please help
>
> Thanks,
> Mayank
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hello,
Does your string end with the newline character '\n'? Otherwise your
output will not be flushed immediately (it remains in the buffer). So try
printk(KERN_DEBUG "Hello World!\n");
Maybe that helps.
br,
phil
^ permalink raw reply [flat|nested] 5+ messages in thread* Not getting printk output
2014-11-23 8:21 ` Philipp Muhoray
@ 2014-11-23 13:19 ` karthik nayak
2014-11-27 17:22 ` Vignesh Radhakrishnan
0 siblings, 1 reply; 5+ messages in thread
From: karthik nayak @ 2014-11-23 13:19 UTC (permalink / raw)
To: kernelnewbies
Hello,
Use the new macros such as pr_info(), pr_debug() and so on.
On Sun Nov 23 2014 at 2:04:27 PM Philipp Muhoray <philipp.muhoray@gmail.com>
wrote:
>
> Am 2014-11-23 um 06:58 schrieb Mayank:
> > Hi,
> > I am trying to print something to the kernel debug log level using
> > printk, but while using dmesg i am not getting the output on the
> > console. My /proc/sys/kernel/printk setting is 4 4 1 7.
> > Please help
> >
> > Thanks,
> > Mayank
> >
> >
> > _______________________________________________
> > Kernelnewbies mailing list
> > Kernelnewbies at kernelnewbies.org
> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
> Hello,
>
> Does your string end with the newline character '\n'? Otherwise your
> output will not be flushed immediately (it remains in the buffer). So try
>
> printk(KERN_DEBUG "Hello World!\n");
>
> Maybe that helps.
>
> br,
> phil
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20141123/907fcad8/attachment-0001.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Not getting printk output
2014-11-23 13:19 ` karthik nayak
@ 2014-11-27 17:22 ` Vignesh Radhakrishnan
0 siblings, 0 replies; 5+ messages in thread
From: Vignesh Radhakrishnan @ 2014-11-27 17:22 UTC (permalink / raw)
To: kernelnewbies
Use pr_info() or pr_err() for getting it printed definitely as suggested.
The caveat with pr_debug() is that, messages will only be printed in case
you have dynamic debug control for that file enabled.(same goes with
printk(KERN_DEBUG ).
On Sun, Nov 23, 2014 at 6:49 PM, karthik nayak <karthik.188@gmail.com>
wrote:
> Hello,
> Use the new macros such as pr_info(), pr_debug() and so on.
>
>
> On Sun Nov 23 2014 at 2:04:27 PM Philipp Muhoray <
> philipp.muhoray at gmail.com> wrote:
>
>>
>> Am 2014-11-23 um 06:58 schrieb Mayank:
>> > Hi,
>> > I am trying to print something to the kernel debug log level using
>> > printk, but while using dmesg i am not getting the output on the
>> > console. My /proc/sys/kernel/printk setting is 4 4 1 7.
>> > Please help
>> >
>> > Thanks,
>> > Mayank
>> >
>> >
>> > _______________________________________________
>> > Kernelnewbies mailing list
>> > Kernelnewbies at kernelnewbies.org
>> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>> Hello,
>>
>> Does your string end with the newline character '\n'? Otherwise your
>> output will not be flushed immediately (it remains in the buffer). So try
>>
>> printk(KERN_DEBUG "Hello World!\n");
>>
>> Maybe that helps.
>>
>> br,
>> phil
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
--
http://vigneshradhakrishnan.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20141127/08f8ea04/attachment.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-11-27 17:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-23 5:58 Not getting printk output Mayank
2014-11-23 7:06 ` karthik nayak
2014-11-23 8:21 ` Philipp Muhoray
2014-11-23 13:19 ` karthik nayak
2014-11-27 17:22 ` Vignesh Radhakrishnan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).