fix USB driver to compile even if USB_DEBUG is disabled

SVN-Revision: 9483
This commit is contained in:
Gabor Juhos 2007-11-02 08:59:37 +00:00
parent 38db1b4adc
commit bf78b6357d

View file

@ -9,8 +9,6 @@
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
#ifdef DEBUG
static inline char *ed_typestring(int ed_type) static inline char *ed_typestring(int ed_type)
{ {
switch (ed_type) { switch (ed_type) {
@ -72,6 +70,8 @@ static inline char *td_togglestring(u32 info)
return "?TOGGLE"; return "?TOGGLE";
} }
#ifdef DEBUG
/* debug| print the main components of an URB /* debug| print the main components of an URB
* small: 0) header + data packets 1) just header * small: 0) header + data packets 1) just header
*/ */
@ -377,6 +377,8 @@ static inline void admhc_dump_up(const struct admhcd *ahcd, const char *label,
const struct urb_priv *up) {} const struct urb_priv *up) {}
static inline void admhc_dump_ed(const struct admhcd *ahcd, const char *label, static inline void admhc_dump_ed(const struct admhcd *ahcd, const char *label,
const struct ed *ed, int verbose) {} const struct ed *ed, int verbose) {}
static inline void admhc_dump_td(const struct admhcd *ahcd, const char *label,
const struct td *td) {}
static inline void admhc_dump(struct admhcd *ahcd, int verbose) {} static inline void admhc_dump(struct admhcd *ahcd, int verbose) {}
#undef ADMHC_VERBOSE_DEBUG #undef ADMHC_VERBOSE_DEBUG