Re: [PATCH 4/4] PCI: quirk print dev name with duration

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

 



On Thu, 2012-02-16 at 09:49 -0800, Bjorn Helgaas wrote:
> If you do change, remember that dev_dbg() is different from
> printk(KERN_DEBUG) in that printk(KERN_DEBUG) is always compiled-in
> and always goes to the dmesg, but dev_dbg() is only compiled in when
> DEBUG is defined, so dev_printk(KERN_DEBUG) would be a more direct
> replacement for printk(KERN_DEBUG).

Correct.

Which is why I usually add #define DEBUG or an
equivalent CONFIG option before those are converted.
Doing so allows control via dynamic debug.


--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux