Author: janderwald
Date: Tue Feb 14 08:57:22 2012
New Revision: 55591
URL:
http://svn.reactos.org/svn/reactos?rev=55591&view=rev
Log:
[USBSTOR]
- Display errors when csw fails
Modified:
trunk/reactos/drivers/usb/usbstor/scsi.c
Modified: trunk/reactos/drivers/usb/usbstor/scsi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbstor/scsi.c…
==============================================================================
--- trunk/reactos/drivers/usb/usbstor/scsi.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbstor/scsi.c [iso-8859-1] Tue Feb 14 08:57:22 2012
@@ -270,9 +270,20 @@
//
// 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