![Chris Kelly](/assets/img/avatar_default.png)
Added tracing facilities and also memory allocation and URB tracking. This is for debugging purposes and is all optional and can be switched out at compile time. Signed-off-by: Chris Kelly <ckelly@ozmodevices.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
20 lines
544 B
C
20 lines
544 B
C
#ifndef _OZURBPARANOIA_H
|
|
#define _OZURBPARANOIA_H
|
|
/* -----------------------------------------------------------------------------
|
|
* Released under the GNU General Public License Version 2 (GPLv2).
|
|
* Copyright (c) 2011 Ozmo Inc
|
|
* -----------------------------------------------------------------------------
|
|
*/
|
|
|
|
#ifdef WANT_URB_PARANOIA
|
|
void oz_remember_urb(struct urb *urb);
|
|
int oz_forget_urb(struct urb *urb);
|
|
#else
|
|
#define oz_remember_urb(__x)
|
|
#define oz_forget_urb(__x) 0
|
|
#endif /* WANT_URB_PARANOIA */
|
|
|
|
|
|
#endif /* _OZURBPARANOIA_H */
|
|
|