- Remove useless debug prints, which violate the spec
- Fix identation
CORE-7009 

svn path=/trunk/; revision=58942
This commit is contained in:
Johannes Anderwald 2013-05-05 14:43:39 +00:00
parent c6f4a6973a
commit ed2e1fdfc9
2 changed files with 2 additions and 16 deletions

View file

@ -279,14 +279,6 @@ CHCDController::HandleDeviceControl(
// it does // it does
// //
Status = IoGetDeviceProperty(m_PhysicalDeviceObject, DevicePropertyDriverKeyName, IoStack->Parameters.DeviceIoControl.OutputBufferLength - sizeof(ULONG), DriverKey->DriverKeyName, &ResultLength); Status = IoGetDeviceProperty(m_PhysicalDeviceObject, DevicePropertyDriverKeyName, IoStack->Parameters.DeviceIoControl.OutputBufferLength - sizeof(ULONG), DriverKey->DriverKeyName, &ResultLength);
if (NT_SUCCESS(Status))
{
//
// informal debug print
//
DPRINT1("[%s] Result %S\n", m_USBType, DriverKey->DriverKeyName);
}
} }
// //
@ -337,7 +329,6 @@ CHCDController::HandleDeviceControl(
PC_ASSERT(IoStack->Parameters.DeviceIoControl.OutputBufferLength - sizeof(ULONG) - sizeof(WCHAR) >= ResultLength); PC_ASSERT(IoStack->Parameters.DeviceIoControl.OutputBufferLength - sizeof(ULONG) - sizeof(WCHAR) >= ResultLength);
DriverKey->DriverKeyName[ResultLength / sizeof(WCHAR)] = L'\0'; DriverKey->DriverKeyName[ResultLength / sizeof(WCHAR)] = L'\0';
DPRINT1("[%s] Result %S\n", m_USBType, DriverKey->DriverKeyName);
} }
// //

View file

@ -476,8 +476,6 @@ CHubController::HandlePnp(
swprintf(Buffer, L"USB\\ROOT_HUB"); swprintf(Buffer, L"USB\\ROOT_HUB");
} }
DPRINT("Name %S\n", Buffer);
// //
// calculate length // calculate length
// //
@ -552,9 +550,6 @@ CHubController::HandlePnp(
Buffer[Index] = UNICODE_NULL; Buffer[Index] = UNICODE_NULL;
Index++; Index++;
DPRINT1("[%s] Name %S\n", m_USBType, Buffer);
// //
// allocate buffer // allocate buffer
// //