[USBSTOR]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Tue, 14 Feb 2012 08:57:22 +0000 (08:57 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Tue, 14 Feb 2012 08:57:22 +0000 (08:57 +0000)
- Display errors when csw fails

svn path=/trunk/; revision=55591

reactos/drivers/usb/usbstor/scsi.c

index b335309..d9d1016 100644 (file)
@@ -270,9 +270,20 @@ USBSTOR_CSWCompletionRoutine(
     //
     // sanity checks
     //
-    ASSERT(Context->csw->Signature == CSW_SIGNATURE);
-    ASSERT(Context->csw->Tag == (ULONG)Context->csw);
-    ASSERT(Context->csw->Status == 0x00);
+    if (Context->csw->Signature != CSW_SIGNATURE)
+    {
+        DPRINT1("[USBSTOR] Expected Signature %x but got %x\n", CSW_SIGNATURE, Context->csw->Signature);
+    }
+
+    if (Context->csw->Tag != (ULONG)Context->csw)
+    {
+        DPRINT1("[USBSTOR] Expected Tag %x but got %x\n", (ULONG)Context->csw, Context->csw->Tag);
+    }
+
+    if (Context->csw->Status != 0x00)
+    {
+        DPRINT1("[USBSTOR] Expected Status 0x00 but got %x\n", Context->csw->Status);
+    }
 
     //
     // free cbw