]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/atm/usbatm.h
USB: remove warn() macro from usb drivers
[linux-2.6-omap-h63xx.git] / drivers / usb / atm / usbatm.h
index e6887c6cf3cf5a26b7401ca4b7477b001df18b01..f6f4508a9d425a38314e1b7dd64d3eca88fee417 100644 (file)
 */
 
 #ifdef DEBUG
-#define UDSL_ASSERT(x) BUG_ON(!(x))
+#define UDSL_ASSERT(instance, x)       BUG_ON(!(x))
 #else
-#define UDSL_ASSERT(x) do { if (!(x)) warn("failed assertion '%s' at line %d", __stringify(x), __LINE__); } while(0)
+#define UDSL_ASSERT(instance, x)                                       \
+       do {    \
+               if (!(x))                                               \
+                       dev_warn(&(instance)->usb_intf->dev,            \
+                                "failed assertion '%s' at line %d",    \
+                                __stringify(x), __LINE__);             \
+       } while(0)
 #endif
 
 #define usb_err(instance, format, arg...)      \