Re: Strange content in the kernel dmesg traces

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



Michael D. Kralka wrote:

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

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 leave it an exercise for a for the reader to figure out what the
difference is.


In the first case, the two string literals become one.  :-)
_______________________________________________
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