Re: [PATCH 1/6] omap iommu: tlb and pagetable primitives

From: David Brownell
Date: Mon Jan 19 2009 - 17:43:04 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/