|
From: Akinobu M. <mi...@mi...> - 2005-05-11 11:10:11
|
On Wednesday 11 May 2005 19:11, Akinobu Mita wrote:
> I want to know further information.
> Can you capture the console log with the following patch and
> enabling CONFIG_USB_STORAGE_DEBUG?
If enabling CONFIG_USB_STORAGE_DEBUG is very messy.
you can use this patch.
--- linux-2.6.9/drivers/usb/storage/debug.h.orig 2005-05-11 19:21:57.909038208 +0900
+++ linux-2.6.9/drivers/usb/storage/debug.h 2005-05-11 19:23:00.535517536 +0900
@@ -55,9 +55,9 @@ struct scsi_cmnd;
void usb_stor_show_command(struct scsi_cmnd *srb);
void usb_stor_show_sense( unsigned char key,
unsigned char asc, unsigned char ascq );
-#define US_DEBUGP(x...) printk( KERN_DEBUG USB_STORAGE x )
-#define US_DEBUGPX(x...) printk( x )
-#define US_DEBUG(x) x
+#define US_DEBUGP(x...) do { if (crashdump_mode()) printk( KERN_DEBUG USB_STORAGE x ); } while (0)
+#define US_DEBUGPX(x...) do { if (crashdump_mode()) printk( x ); } while (0)
+#define US_DEBUG(x) do { if (crashdump_mode()) x ; } while (0)
#else
#define US_DEBUGP(x...)
#define US_DEBUGPX(x...)
|