Re: Debugging Printk
From: Amit Yadav (amit_ra_at_hotmail.com)
Date: 05/26/05
- Next message: Grant Edwards: "Re: immediate receiving of data from serial interfaces"
- Previous message: Mathias Heier: "Removing 'CardServices' from wlan-driver"
- In reply to: Kasper Dupont: "Re: Debugging Printk"
- Next in thread: Kasper Dupont: "Re: Debugging Printk"
- Reply: Kasper Dupont: "Re: Debugging Printk"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 26 May 2005 18:58:34 +0530
So, is this essential that a newline should be at the end of the
message/string passed to the printk ie
char *a = "some message";
printk(a);
is wrong ?? and it should be
char *a = "some message\n";
printk(a);
Thanks
Amit.
Kasper Dupont wrote:
> Josef Moellers wrote:
>
>>Whenever I see these severity indicators e.g. in /var/log/messages, they
>>appear when there are characters other than a newline _before_ them.
>
>
> Indeed, this typically happens if somewhere
> else in the kernel somebody forgot to end a
> printk with a newline.
>
- Next message: Grant Edwards: "Re: immediate receiving of data from serial interfaces"
- Previous message: Mathias Heier: "Removing 'CardServices' from wlan-driver"
- In reply to: Kasper Dupont: "Re: Debugging Printk"
- Next in thread: Kasper Dupont: "Re: Debugging Printk"
- Reply: Kasper Dupont: "Re: Debugging Printk"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|