Re: whither pdev_dbg() and friends.

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

 



On Sat, May 27, 2006 at 12:31:36PM -0600, Jim Cromie wrote:
> 
> in my hacking, Ive found this macro useful/tempting:
> 
> vt2:+#define pdev_info(pdev, args...) dev_info(&(pdev)->dev, ## args )
> 
> which imitates and augments this from include/linux/device.h:

Is typing the full &foo->dev, really worth defining a new macro for?
Wow, lazy typists...

In short, no, just use dev_info() and friends directly.

thanks,

greg k-h

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux