]> git.neil.brown.name Git - history.git/commitdiff
Don't BUG_ON() SCSI length confusion. Print out the problem
authorLinus Torvalds <torvalds@home.transmeta.com>
Sat, 17 Aug 2002 05:07:02 +0000 (22:07 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 17 Aug 2002 05:07:02 +0000 (22:07 -0700)
and the call trace instead.

drivers/usb/storage/transport.c

index 8c3baaabfb028da41841fad35a3eb9c9b3a2ebd7..872d8773c5acf0cd20fb4b30fbb0b7960ba203d4 100644 (file)
@@ -348,7 +348,10 @@ unsigned int usb_stor_transfer_length(Scsi_Cmnd *srb)
         * violates this invariant is a bug.  In the hopes of removing
         * all the complex logic above, let's find them and eliminate them.
         */
-       BUG_ON(len != srb->request_bufflen);
+       if (len != srb->request_bufflen) {
+               printk("USB len=%d, request_bufflen=%d\n", len, srb->request_bufflen);
+               show_trace(NULL);
+       }
 
        return len;
 }