Skip to contentSkip to conversation

How to enable dev_dbg messaging

DISCUSSION Jay Cliburn 2 participants 2 messages Jun 30, 2007

lore
Share & tools
lore
#0 lore raw

How do I turn on dev_dbg messaging in the kernel? I can get printk(KERN_DEBUG ...) to work just fine, but I don't know how to enable dev_dbg.

Thanks,
Jay

#1 lore raw
Quoted 3 lines · Jay Cliburn

How do I turn on dev_dbg messaging in the kernel? I can get printk(KERN_DEBUG ...) to work just fine, but I don't know how to enable dev_dbg.

Defining DEBUG before including <linux/device.h> enables dev_dbg to work.