mirror of
https://github.com/reactos/reactos.git
synced 2025-05-31 15:08:14 +00:00
[USBSTOR]
- Display errors when csw fails svn path=/trunk/; revision=55591
This commit is contained in:
parent
bc5bf60461
commit
daa3a4d63f
1 changed files with 14 additions and 3 deletions
|
@ -270,9 +270,20 @@ USBSTOR_CSWCompletionRoutine(
|
||||||
//
|
//
|
||||||
// sanity checks
|
// sanity checks
|
||||||
//
|
//
|
||||||
ASSERT(Context->csw->Signature == CSW_SIGNATURE);
|
if (Context->csw->Signature != CSW_SIGNATURE)
|
||||||
ASSERT(Context->csw->Tag == (ULONG)Context->csw);
|
{
|
||||||
ASSERT(Context->csw->Status == 0x00);
|
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
|
// free cbw
|
||||||
|
|
Loading…
Reference in a new issue