Changeset 38262 in vbox for trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbFlt.cpp
- Timestamp:
- Aug 1, 2011 2:10:21 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbFlt.cpp
r37047 r38262 405 405 if (!NT_SUCCESS(Status)) 406 406 { 407 L ogRel((__FUNCTION__": getting device descriptor failed\n"));407 LOGREL((__FUNCTION__": getting device descriptor failed\n")); 408 408 break; 409 409 } … … 411 411 if (vboxUsbFltBlDevMatchLocked(pDevDr->idVendor, pDevDr->idProduct, pDevDr->bcdDevice)) 412 412 { 413 L ogRel((__FUNCTION__": found a known black list device, vid(0x%x), pid(0x%x), rev(0x%x)\n", pDevDr->idVendor, pDevDr->idProduct, pDevDr->bcdDevice));413 LOGREL((__FUNCTION__": found a known black list device, vid(0x%x), pid(0x%x), rev(0x%x)\n", pDevDr->idVendor, pDevDr->idProduct, pDevDr->bcdDevice)); 414 414 #ifdef DEBUG_misha 415 415 AssertFailed(); … … 419 419 } 420 420 421 L og(("Device pid=%x vid=%x rev=%x\n", pDevDr->idVendor, pDevDr->idProduct, pDevDr->bcdDevice));421 LOG(("Device pid=%x vid=%x rev=%x\n", pDevDr->idVendor, pDevDr->idProduct, pDevDr->bcdDevice)); 422 422 pDevice->idVendor = pDevDr->idVendor; 423 423 pDevice->idProduct = pDevDr->idProduct; … … 535 535 } 536 536 #endif 537 L og((__FUNCTION__": strings: '%s':'%s':'%s' (lang ID %x)\n",537 LOG((__FUNCTION__": strings: '%s':'%s':'%s' (lang ID %x)\n", 538 538 pDevice->szMfgName, pDevice->szProduct, pDevice->szSerial, langId)); 539 539 } … … 713 713 Assert(Irql == PASSIVE_LEVEL); 714 714 715 L og(("==" __FUNCTION__"\n"));715 LOG(("==" __FUNCTION__"\n")); 716 716 717 717 for (int i=0;i<RT_ELEMENTS(lpszStandardControllerName);i++) … … 745 745 if (Status == STATUS_SUCCESS) 746 746 { 747 L og(("IoGetDeviceObjectPointer for %s returned %p %p\n", szHubName, pHubDevObj, pHubFileObj));747 LOG(("IoGetDeviceObjectPointer for %s returned %p %p\n", szHubName, pHubDevObj, pHubFileObj)); 748 748 749 749 if (pHubDevObj->DriverObject … … 759 759 760 760 #ifdef DEBUG 761 L og(("Associated driver "));761 LOG(("Associated driver ")); 762 762 vboxUsbDbgPrintUnicodeString(&pHubDevObj->DriverObject->DriverName); 763 L og((" -> related dev obj=0x%p\n", IoGetRelatedDeviceObject(pHubFileObj)));763 LOG((" -> related dev obj=0x%p\n", IoGetRelatedDeviceObject(pHubFileObj))); 764 764 #endif 765 765 … … 774 774 PDEVICE_OBJECT pDevObj = pDevRelations->Objects[k]; 775 775 776 L og(("Found existing USB PDO 0x%p\n", pDevObj));776 LOG(("Found existing USB PDO 0x%p\n", pDevObj)); 777 777 VBOXUSBFLT_LOCK_ACQUIRE(); 778 778 PVBOXUSBFLT_DEVICE pDevice = vboxUsbFltDevGetLocked(pDevObj); … … 931 931 { 932 932 *pId = 0; 933 /* L ogthe filter details. */934 L og((__FUNCTION__": %s %s %s\n",933 /* LOG the filter details. */ 934 LOG((__FUNCTION__": %s %s %s\n", 935 935 USBFilterGetString(pFilter, USBFILTERIDX_MANUFACTURER_STR) ? USBFilterGetString(pFilter, USBFILTERIDX_MANUFACTURER_STR) : "<null>", 936 936 USBFilterGetString(pFilter, USBFILTERIDX_PRODUCT_STR) ? USBFilterGetString(pFilter, USBFILTERIDX_PRODUCT_STR) : "<null>", 937 937 USBFilterGetString(pFilter, USBFILTERIDX_SERIAL_NUMBER_STR) ? USBFilterGetString(pFilter, USBFILTERIDX_SERIAL_NUMBER_STR) : "<null>")); 938 938 #ifdef DEBUG 939 L og(("VBoxUSBClient::addFilter: idVendor=%#x idProduct=%#x bcdDevice=%#x bDeviceClass=%#x bDeviceSubClass=%#x bDeviceProtocol=%#x bBus=%#x bPort=%#x\n",939 LOG(("VBoxUSBClient::addFilter: idVendor=%#x idProduct=%#x bcdDevice=%#x bDeviceClass=%#x bDeviceSubClass=%#x bDeviceProtocol=%#x bBus=%#x bPort=%#x\n", 940 940 USBFilterGetNum(pFilter, USBFILTERIDX_VENDOR_ID), 941 941 USBFilterGetNum(pFilter, USBFILTERIDX_PRODUCT_ID), … … 1300 1300 { 1301 1301 /* this is due to devie was physically removed */ 1302 L og(("The proxy notified progy stop for the captured device 0x%x\n", pDevice));1302 LOG(("The proxy notified progy stop for the captured device 0x%x\n", pDevice)); 1303 1303 pDevice->enmState = VBOXUSBFLT_DEVSTATE_CAPTURING; 1304 1304 vboxUsbFltSignalChangeLocked(); … … 1316 1316 { 1317 1317 int rc = VBoxUSBFilterInit(); 1318 AssertRC(rc);1319 1318 if (RT_FAILURE(rc)) 1319 { 1320 WARN(("VBoxUSBFilterInit failed, rc (%d)", rc)); 1320 1321 return STATUS_UNSUCCESSFUL; 1322 } 1321 1323 1322 1324 memset(&g_VBoxUsbFltGlobals, 0, sizeof (g_VBoxUsbFltGlobals));
Note:
See TracChangeset
for help on using the changeset viewer.