On 6/14/2011 8:06 AM, Chang, Samuel wrote:
Hi Arjan,

I checked with dev_err / dev_warn().
The implementation of dev_err / dev_warn() is printk(KERN_ERR args) and 
printk(KERN_WARNING args).

actually that's a way oversimplification. there is a per device field that tools can enable to hide/enabling messages on a per device basis. it also provides a standardized format to that tools can filter messages coming from a device.


The reason I didn't use dev_err / dev_warn() is there is no suitable (or easy to get) 
"dev" variable in ar6003 driver.
So, I need to put NULL for this dev variable.
Then dev_err will be printk(KERN_ERR "Null device" ...).

then use pr_debug() and family of APIs
but really you can get to a dev() normally...

_______________________________________________
MeeGo-kernel mailing list
[email protected]
http://lists.meego.com/listinfo/meego-kernel

Reply via email to