diff options
| author | Sergei Shtylyov <[email protected]> | 2010-09-24 13:44:02 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2010-10-22 10:21:52 -0700 |
| commit | d613746d8bc3a2904d4585d7efd7f457d9db6fb9 (patch) | |
| tree | 2252b919e8d5c3a8ba1eda0e671a3813456d784e /scripts/patch-kernel | |
| parent | e06ea97fa47611992a5a61058729cf8e83bf6fda (diff) | |
USB: musb: make DBG() calls actually depend on CONFIG_USB_MUSB_DEBUG
Enabling CONFIG_USB_MUSB_DEBUG option causes -DDEBUG to be added to gcc's
command line, however the DBG() macro doesn't depend on DEBUG, so that the
debugging messages get printed regardless of the option, and I don't think
that this was intended. Get rid of otherwise unused xprintk() macro and make
DBG() macro directly call pr_debug() which only results in the actual code
generated if DEBUG is defined.
This change makes musb_hdrc.o ~30% less in size with CONFIG_USB_MUSB_DEBUG
disabled (in host mode).
Signed-off-by: Sergei Shtylyov <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions