login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
9
Re: [01/03] USB: add CONFIG_USB_DEBUG_MESSAGES and usb_dbg()
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Marcin Slusarz
Subject:
Re: [01/03] USB: add CONFIG_USB_DEBUG_MESSAGES and usb_dbg()
Date: Saturday, August 9, 2008 - 8:04 am
On Fri, Aug 08, 2008 at 06:39:17PM -0700, Greg KH wrote:
quoted text
> --- a/drivers/usb/core/usb.h > +++ b/drivers/usb/core/usb.h > @@ -132,6 +132,28 @@ static inline int is_active(const struct > /* for labeling diagnostics */ > extern const char *usbcore_name; > > +/* USB debugging */ > +/* if debug is on or not for the USB core */ > +extern int usb_debug; > + > +#if defined(CONFIG_USB_DEBUG_MESSAGES) > +/* macro for debugging */ > +#define usb_dbg(dev, format, arg...) \ > + ({ \ > + if (usb_debug) \
maybe unlikely here?
quoted text
> + dev_printk(KERN_DEBUG , dev , format , ## arg); \ > + 0; \ > + }) > +#else > +#define usb_dbg(dev, format, arg...) \ > + ({ \ > + if (0) \ > + dev_printk(KERN_DEBUG , dev , format , ## arg); \ > + 0; \ > + }) > +#endif > + > + > /* sysfs stuff */ > extern struct attribute_group *usb_device_groups[]; > extern struct attribute_group *usb_interface_groups[];
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[00/03] [RFC] USB debugging rework
, Greg KH
, (Fri Aug 8, 6:38 pm)
[01/03] USB: add CONFIG_USB_DEBUG_MESSAGES and usb_dbg()
, Greg KH
, (Fri Aug 8, 6:39 pm)
[02/03] USB: convert the USB core code to use usb_dbg()
, Greg KH
, (Fri Aug 8, 6:39 pm)
[03/03] USB: remove CONFIG_USB_DEBUG
, Greg KH
, (Fri Aug 8, 6:40 pm)
Re: [01/03] USB: add CONFIG_USB_DEBUG_MESSAGES and usb_dbg()
, Marcin Slusarz
, (Sat Aug 9, 8:04 am)
Re: [00/03] [RFC] USB debugging rework
, Pete Zaitcev
, (Sat Aug 9, 3:04 pm)
Re: [00/03] [RFC] USB debugging rework
, Frans Pop
, (Sat Aug 9, 3:57 pm)
Re: [00/03] [RFC] USB debugging rework
, Felipe Balbi
, (Sat Aug 9, 4:36 pm)
Re: [00/03] [RFC] USB debugging rework
, Felipe Balbi
, (Sat Aug 9, 4:44 pm)
Re: [00/03] [RFC] USB debugging rework
, Greg KH
, (Sat Aug 9, 6:38 pm)
Re: [00/03] [RFC] USB debugging rework
, Greg KH
, (Sat Aug 9, 8:35 pm)
Re: [01/03] USB: add CONFIG_USB_DEBUG_MESSAGES and usb_dbg()
, Greg KH
, (Sat Aug 9, 8:36 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Howells
[PATCH] KEYS: Use the variable 'key' in keyctl_describe_key()
Greg Kroah-Hartman
[PATCH 17/36] sysdev: detect multiple driver registrations
Dave Jones
Re: OT: character encodings (was: Linux 2.6.20-rc4)
Sam Ravnborg
Re: [PATCH] kbuild: fix make V=1
Nick Piggin
Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures
git
:
Stephen R. van den Berg
Re: [RFC] origin link for cherry-pick and revert
Junio C Hamano
Re: [PATCH 1/2] Teach git-describe to display distances from tags.
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
Dan Chokola
Re: how do you "force a pull"?
Junio C Hamano
Re: [PATCH 6/6] Teach core object handling functions about gitlinks
linux-netdev
:
Jan Engelhardt
[PATCH 1/3] net: tcp: make hybla selectable as default congestion module
Jarek Poplawski
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Lennert Buytenhek
Re: Distributed Switch Architecture(DSA)
Daniel Schaffrath
Re: tcp bw in 2.6
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
git-commits-head
:
Linux Kernel Mailing List
ipv6: fix an oops when force unload ipv6 module
Linux Kernel Mailing List
tracing: protect reader of cmdline output
Linux Kernel Mailing List
kconfig: recalc symbol value before showing search results
Linux Kernel Mailing List
KVM: VMX: Clear CR4.VMXE in hardware_disable
Linux Kernel Mailing List
USB: set correct configuration in probe of ti_usb_3410_5052
openbsd-misc
:
Claudio Jeker
Re: Vlan Tag on Vlan Tag (l2tunneling)
Josh Grosse
ssh/sshd challenge-response seems to have stopped working in -current
Pieter Verberne
File collision while using pkg_add
Tomas Bodzar
bsd: uvm_mapent_alloc: out of static map entries
Community First Financial
Teacher A+ Loan
Colocation donated by:
Syndicate