patch-2.4.0-test9 linux/drivers/usb/microtek.c
Next file: linux/drivers/usb/net1080.c
Previous file: linux/drivers/usb/hub.h
Back to the patch index
Back to the overall index
- Lines: 59
- Date:
Mon Sep 18 17:31:14 2000
- Orig file:
v2.4.0-test8/linux/drivers/usb/microtek.c
- Orig date:
Thu Sep 7 08:42:37 2000
diff -u --recursive --new-file v2.4.0-test8/linux/drivers/usb/microtek.c linux/drivers/usb/microtek.c
@@ -98,10 +98,12 @@
* 20000603 Version 0.2.1
* 20000620 minor cosmetic changes
* 20000620 Version 0.2.2
- * 20000822 Hopefully fixed deadlock in mts_remove_nolock()
- * 20000822 Fixed minor race in mts_transfer_cleanup()
- * 20000822 Fixed deadlock on submission error in queuecommand
- * 20000822 Version 0.2.3
+ * 20000822 Hopefully fixed deadlock in mts_remove_nolock()
+ * 20000822 Fixed minor race in mts_transfer_cleanup()
+ * 20000822 Fixed deadlock on submission error in queuecommand
+ * 20000822 Version 0.2.3
+ * 20000913 Reduced module size if debugging is off
+ * 20000913 Version 0.2.4
*/
#include <linux/module.h>
@@ -151,7 +153,7 @@
/* Internal driver stuff */
-#define MTS_VERSION "0.2.3"
+#define MTS_VERSION "0.2.4"
#define MTS_NAME "microtek usb (rev " MTS_VERSION "): "
#define MTS_WARNING(x...) \
@@ -198,6 +200,8 @@
MTS_DEBUG_INT();\
} while (0)
+#ifdef MTS_DO_DEBUG
+
static inline void mts_debug_dump(struct mts_desc* desc) {
MTS_DEBUG("desc at 0x%x: halted = %x%x, toggle = %x%x\n",
(int)desc,(int)desc->usb_dev->halted[1],(int)desc->usb_dev->halted[0],
@@ -292,6 +296,23 @@
srb->cmnd[0], srb->cmnd[1], srb->cmnd[2], srb->cmnd[3], srb->cmnd[4], srb->cmnd[5],
srb->cmnd[6], srb->cmnd[7], srb->cmnd[8], srb->cmnd[9]);
}
+
+#else
+
+static inline void mts_show_command(Scsi_Cmnd *srb)
+{
+ while (0) {}
+}
+
+static inline void mts_debug_dump(struct mts_desc* desc)
+{
+ while (0) {}
+}
+
+#endif
+
+
+
static inline int mts_is_aborting(struct mts_desc* desc) {
return (atomic_read(&desc->context.do_abort));
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)