|
Driver porting: hello worldDriver porting: hello worldPosted Jul 28, 2004 9:28 UTC (Wed) by PsychoJamin (guest, #23518)In reply to: Driver porting: hello world by littertiger Parent article: Driver porting: hello world KERN_INFO is part of a macro defined in <linux/kernel.h> It replaces the need for <0> .. <7> in printk messages which specifies the priority of the message. Where 0 is the highest priority and 7 is the lowest. As these are macros there is no need for a ',' between it ans the rest of the printk parameter. ie printk(KERN_INFO "Hello\n"); not printk(KERN_INFO, "Hello\n"); The definietions are as follows: #define KERN_EMERG "<0>" /* system is unusable */
(Log in to post comments)
|
Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.