Re: [PATCH v2] Staging: rt2860: include KERN_* in printk

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

 



On Mon, 2010-12-13 at 13:15 -0800, Greg KH wrote:
> On Mon, Dec 13, 2010 at 09:24:30PM +0100, L. Alberto GimÃnez wrote:
> > +#define DBGPRINT_ERR(fmt, args...) printk(KERN_ERR fmt, ##args)
> > Recommended by Joe. I agree that it is cleaner and more compliant.
> Not really, it should be replaced with dev_err() or some such universal
> replacement.

It's used with and without access to a struct device.

The uses that have a struct device available should be
dev_<foo> and with a struct net_device should be netdev_<foo>
though that's a wider change.

It's also used in consecutive calls without newline where
KERN_CONT should be used instead.
 
Greg, you replied to the list but not the sender.
Please don't drop the sender.

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux