Quoting Tom Hansen <>:
> I'm trying to get COM3 working properly on a TS-7260.
>
> Whenever I read or write to the port /dev/ttyTS0, the console is
> flooded with messages like this:
>
> tsuart_checkRX
> tsuart_try_handleRx
> tsuart_checkRX
> tsuart_try_handleRx
> tsuart_checkRX
> tsuart_try_handleRx
> tsuart_checkRX
> tsuart_try_handleRx
> tsuart_checkRX
> tsuart_try_handleRx
> tsuart_checkRX
>
> First off, it obscures what I'm trying to do, plus it just doesn't
> seem normal. Is there some debugging mode that I need to turn off?
>
The kernel header file .../include/linux/kernel.h defines the different
printk log levels, from KERN_EMERG ("<0>") to KERN_DEBUG ("<7>").
If a printk statement does not specify a loglevel, the value
DEFAULT_MESSAGE_LOGLEVEL is used, defined in .../kernel/printk.c.
The variable console_loglevel controls what printk messages are displayed
on the system console, this is initialized by DEFAULT_CONSOLE_LOGLEVEL,
which on our system is 7. This means that any printk message with a lower
loglevel than KERN_DEBUG is displayed on the system console.
Enough theory?
Now for the practical. The klogd daemon, if started with -c parameter
sets the console_loglevel. Do a process list and see what parameters klogd
started with. You can restart the daemon with a different -c parameter.
An easier way to change what printk messages appear on your console is
to use /proc/sys/kernel/printk.
echo 8 > /proc/sys/kernel/printk # all messages appear on console
echo 1 > /proc/sys/kernel/printk # only KERN_EMERG messages appear
Regardless of what appears on the console, all of the messages appear
in /var/log/messages if both klogd and syslogd are running.
Hope this helps.
Cheers,
T.mike
------------------------ Yahoo! Groups Sponsor --------------------~-->
You can search right from your browser? It's easy and it's free. See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/CFFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|