Re: Strange content in the kernel dmesg traces [SOLVED]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 4/25/07, Michael D. Kralka <michael.kralka@xxxxxxx> wrote:

I am going to regret answering this, because it is not the right place
for such questions. However...

True, but thank you for the post.

I suspect you are misusing printk and the KERN_XXX prefixes (KERN_DEBUG,
KERN_ERR, KERN_INFO, etc.) defined in include/linux/kernel.h. Try
dropping the comma between the prefix and the message. That is:
        printk(KERN_INFO "Hello World!\n");
rather than:
        printk(KERN_INFO, "Hello World!\n");

I would hate to admit that a typo was "misusing" something, but this
was the problem - one of the 35 traces I have in place was mistyped
with a comma after the KERN_DEBUG.  I think staring at them allowed me
to miss this the first four or five times through, and, of course, it
was the last one I added - the one that was not supposed to appear at
all.

--
Mark Hull-Richter, Linux Kernel Engineer
DATAllegro (www.datallegro.com)
85 Enterprise, Second Floor, Aliso Viejo, CA  92656
949-680-3082 - Office     949-330-7691 - fax
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux