Messages in this thread | | | From | David Brownell <> | Subject | Re: [PATCH 1/6] omap iommu: tlb and pagetable primitives | Date | Mon, 19 Jan 2009 14:42:49 -0800 |
| |
On Monday 19 January 2009, Russell King - ARM Linux wrote: > > > > Use dev_vdbg() to get the "NOP unless VERBOSE is set" semantics. > > > > Thanks. This is what I wanted... I'll update with "dev_vdbg()". > > Sorry, drop the 'v' in that (typo).
Not clear what that comment means ... dev_vdbg() is the same as dev_dbg() *IF* the VERBOSE option is set, and is otherwise a NOP.
That is: two levels of debug messaging, for use as needed. As a rule, some Kconfig option will
ccflags-$(CONFIG_DEBUG_whatever) += -DDEBUG
to enable DEBUG for that subsystem, and the VERBOSE option (see <linux/device.h>) is set selectively by hand.
- Dave
| |