On Fri, 19 Apr 2002, Timothy Jedlicka bonzopad wrote:

| I'm working on a patch for hpusbscsi.c to update the debugging statements and
| allow them to be #ifdef (rather than hardcoded to "on" as they are now).  I
| noted that usb.h has the dbg macro "#ifdef DEBUG", why isn't this
|  "#ifdef CONFIG_USB_DEBUG"?  When configing my kernel - I select
| CONFIG_USB_DEBUG to expect to see these debug statements.  I can see the
| argument that "DEBUG" is more generic so when recompiling individual modules
| you may just choose DEBUG.  I don't know what the right answer is.  Opinions?

Hi,
Your driver should do like drivers/usb/usb.c (in this order):

#ifdef CONFIG_USB_DEBUG
        #define DEBUG
#else
        #undef DEBUG
#endif
#include <linux/usb.h>

~Randy


_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to