"printk" does not print
Hi to all,
I'm trying to trace the execution path of a custom ISDN driver, and I have used some printk() instructions to give some messages out.
Now, everything is going well, but when I try to open the ttyI0 device (or ttyIx it is the same) the printk() that I have placed into the file isdn_tty.c does not print any messages. I am sure that such procedure has been executed because I have placed a breakpoint on the "isdn_tty_open()" and the program stopped.
Anybody has an idea what happens?
many thanks
Gianfranco
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 5 lines · Ing.Gianfranco Morandi
Hi to all,
I'm trying to trace the execution path of a custom ISDN driver, and I have used some
printk()instructions to give some messages out.
Quoted 7 lines
Now, everything is going well, but when I try to open the ttyI0 device (or ttyIx it is the same) the
printk()that I have placed into the fileisdn_tty.cdoes not print any messages. I am sure that such procedure has been executed because I have placed a breakpoint on the "isdn_tty_open()" and the program stopped.Anybody has an idea what happens?
You probably neglected to set a KERN_ level.
See if they are in your dmesg or messages file, you might be sending them to syslog but not the screen.
-Bret
--
Bret Indrelee QLogic Corporation
[email protected] 6321 Bury Drive, St 13, Eden Prairie, MN 55346
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Hi,
if your startup skript changes the console log level in /proc/sys/kernel/printk maybe not all messages are displayed on console. But you can still look into /var/log/messages.
Regards, Stephan
Quoted 27 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Bret Indrelee
Sent: Montag, 3. Marz 2003 15:46
To: Ing.Gianfranco Morandi
Cc: LinuxPPC
Subject: Re: "printk" does not printQuoted 5 lines · Ing.Gianfranco Morandi
Hi to all,
I'm trying to trace the execution path of a custom ISDN driver, and I have used some
printk()instructions to give some messages out.Quoted 7 lines
Now, everything is going well, but when I try to open the ttyI0 device (or ttyIx it is the same) the
printk()that I have placed into the fileisdn_tty.cdoes not print any messages. I am sure that such procedure has been executed because I have placed a breakpoint on the "isdn_tty_open()" and the program stopped.Anybody has an idea what happens?
You probably neglected to set a
KERN_level.
Quoted 12 lines
See if they are in your dmesg or messages file, you might be sending them to syslog but not the screen.
-Bret
--
Bret Indrelee QLogic Corporation
[email protected] 6321 Bury Drive, St 13, Eden Prairie, MN 55346
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 4 lines · Stephan Linke
Hi,
if your startup skript changes the console log level in
/proc/sys/kernel/printkmaybe not all messages are displayed on console. But you can still look into/var/log/messages.
...assuming you have klogd/syslogd installed and running...
--Mark
Quoted 39 lines
Regards, Stephan
Quoted 36 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Bret Indrelee
Sent: Montag, 3. Marz 2003 15:46
To: Ing.Gianfranco Morandi
Cc: LinuxPPC
Subject: Re: "printk" does not printQuoted 5 lines · Ing.Gianfranco Morandi
Hi to all,
I'm trying to trace the execution path of a custom ISDN driver, and I have used some
printk()instructions to give some messages out.Quoted 7 lines
Now, everything is going well, but when I try to open the ttyI0 device (or ttyIx it is the same) the
printk()that I have placed into the fileisdn_tty.cdoes not print any messages. I am sure that such procedure has been executed because I have placed a breakpoint on the "isdn_tty_open()" and the program stopped.Anybody has an idea what happens?
You probably neglected to set a
KERN_level.See if they are in your dmesg or messages file, you might be sending them to syslog but not the screen.
-Bret
--
Bret Indrelee QLogic Corporation
[email protected] 6321 Bury Drive, St 13, Eden Prairie, MN 55346
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
After setting up the right log level, printk now works!
many thanks to all
Gianfranco
----- Original Message -----
From: "Mark Hatle" <[email protected]>
To: "Stephan Linke" <[email protected]>
Cc: "Bret Indrelee" <[email protected]>; "Linuxppc-Embedded" <[email protected]>
Sent: Monday, March 03, 2003 5:38 PM
Subject: Re: "printk" does not print
Quoted 5 lines
Quoted 3 lines · Stephan Linke
Hi,
if your startup skript changes the console log level in
/proc/sys/kernel/printk maybe not all messages are displayed on console. But
Quoted 25 lines
Quoted 1 line
you can still look into
/var/log/messages....assuming you have klogd/syslogd installed and running...
--Mark
Quoted 19 lines
Regards, Stephan
Quoted 16 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Bret Indrelee
Sent: Montag, 3. Marz 2003 15:46
To: Ing.Gianfranco Morandi
Cc: LinuxPPC
Subject: Re: "printk" does not printQuoted 3 lines · Ing.Gianfranco Morandi
Hi to all,
I'm trying to trace the execution path of a custom ISDN driver, and I
have
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
used some
printk()instructions to give some messages out.Now, everything is going well, but when I try to open the ttyI0 device
(or
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
ttyIx it is the same) the
printk()that I have placed into the fileisdn_tty.cdoes not print any messages. I am sure that such procedure
has
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
been executed because I have placed a breakpoint on the
"isdn_tty_open()"
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
and the program stopped.
Anybody has an idea what happens?
You probably neglected to set a
KERN_level.See if they are in your dmesg or messages file, you might be sending
them
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
to syslog but not the screen.
-Bret
--
Bret Indrelee QLogic Corporation
[email protected] 6321 Bury Drive, St 13, Eden Prairie, MN
55346
Quoted 3 lines
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/