lkml.org 
[lkml]   [2011]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectprintk(KERN_x...) vs dev_x()
Date
Hi,

I'm submitting patches to linux kernel.
I'd like to know, Which is the acceptable practice to print debug messages?

At some places in the code, there is no valid 'dev' pointer to pass to
dev_xx() macro, at such places is it ok to use printk(KERN_XXX...)?

Please let me know correct format of print messages.

Thanks,
Sutharsan.

---------------------------------------------------------------
This message and any attachments may contain Cypress (or its
subsidiaries) confidential information. If it has been received
in error, please advise the sender and immediately delete this
message.
---------------------------------------------------------------



\
 
 \ /
  Last update: 2011-01-21 07:45    [W:0.027 / U:7.928 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site