Skip to content

Commit

Permalink
UsbTarget: Add trace for ResetDevice
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
  • Loading branch information
Dmitry Fleytman committed Dec 24, 2015
1 parent 00cf4cb commit 910c71c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UsbDk/UsbTarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,8 @@ NTSTATUS CWdfUsbTarget::ResetDevice(WDFREQUEST Request)
//ResetDevice does not require locking because is scheduled sequentially
//with SetAltSettings which is only operation that changes pipes array

TraceEvents(TRACE_LEVEL_INFORMATION, TRACE_USBTARGET, "%!FUNC! processing started");

for (UCHAR i = 0; i < m_NumInterfaces; i++)
{
auto currentStatus = m_Interfaces[i].Reset(Request);
Expand All @@ -444,6 +446,8 @@ NTSTATUS CWdfUsbTarget::ResetDevice(WDFREQUEST Request)
}
}

TraceEvents(TRACE_LEVEL_INFORMATION, TRACE_USBTARGET, "%!FUNC! processing finished: %!STATUS!", status);

return status;
}

Expand Down

0 comments on commit 910c71c

Please sign in to comment.