Skip to contentSkip to conversation

Print for tracing bugs

DISCUSSION Alan Horstmann 3 participants 6 messages Jan 23, 2006 – Jan 26, 2006

lore
Share & tools
lore
#0 lore raw

I am trying to trace problems with SPDIF in ice1712.c. Is there an easy way to print messages/values out in a terminal window from the running sound driver (using a version of print added in the code), perhaps after doing 'rcalsasound restart' from a Konsole?

Alan

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

#1 lore raw
Quoted 4 lines · Alan Horstmann

I am trying to trace problems with SPDIF in ice1712.c. Is there an easy way to print messages/values out in a terminal window from the running sound driver (using a version of print added in the code), perhaps after doing 'rcalsasound restart' from a Konsole?

Yes just add printk()'s to the driver code.

Lee

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

#2 lore raw
Quoted 2 lines · you

Yes just add printk()'s to the driver code.

Thanks. I can get these to print to var/log/messsages, but how do I get them to come immediately to a konsole?

Alan

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

#3 lore raw
Quoted 5 lines · Alan Horstmann
Quoted 2 lines · you

Yes just add printk()'s to the driver code.

Thanks. I can get these to print to var/log/messsages, but how do I get them to come immediately to a konsole?

No idea, that's a KDE issue. Most GUI terminals don't print out the kernel messages.

Try a text console.

Lee

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

#4 lore raw
In reply to Alan Horstmann
Quoted 11 lines · Alan Horstmann
Quoted 2 lines · you

Yes just add printk()'s to the driver code.

Thanks. I can get these to print to var/log/messsages, but how do I get them
to come immediately to a konsole?

Alan

In the konsole type
tail -f /var/log/messages

As messages appear in the file, they will be displayed.

#5 lore raw
Quoted 4 lines · you

In the konsole type
tail -f /var/log/messages

As messages appear in the file, they will be displayed.

That's great; thanks for the help.

Alan

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642