Skip to content

Commit

Permalink
driver: add optional message to Dump() procedure
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Benditovich <[email protected]>
  • Loading branch information
ybendito authored and YanVugenfirer committed Jan 2, 2020
1 parent b7acf79 commit b08ff21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions UsbDk/ControlDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1110,10 +1110,11 @@ NTSTATUS CUsbDkRedirection::Create(const USB_DK_DEVICE_ID &Id)
return m_InstanceID.Create(Id.InstanceID);
}

void CUsbDkRedirection::Dump() const
void CUsbDkRedirection::Dump(LPCSTR message) const
{
TraceEvents(TRACE_LEVEL_INFORMATION, TRACE_CONTROLDEVICE,
"%!FUNC! Redirect: DevID: %wZ, InstanceID: %wZ",
"%!FUNC! %s DevID: %wZ, InstanceID: %wZ",
message,
m_DeviceID, m_InstanceID);
}

Expand Down
2 changes: 1 addition & 1 deletion UsbDk/ControlDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class CUsbDkRedirection : public CAllocatable<USBDK_NON_PAGED_POOL, 'NRHR'>, pub
bool operator==(const CUsbDkChildDevice &Dev) const;
bool operator==(const CUsbDkRedirection &Other) const;

void Dump() const;
void Dump(LPCSTR message = " ") const;

void NotifyRedirectorCreated(CUsbDkFilterDevice *RedirectorDevice);
void NotifyRedirectionRemoved();
Expand Down

0 comments on commit b08ff21

Please sign in to comment.