Changeset 38262 in vbox for trunk/src/VBox/HostDrivers/VBoxUSB/win
- Timestamp:
- Aug 1, 2011 2:10:21 PM (13 years ago)
- Location:
- trunk/src/VBox/HostDrivers/VBoxUSB/win/mon
- Files:
-
- 4 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)); -
trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbHook.cpp
r37083 r38262 24 24 if (pHook->fIsInstalled) 25 25 { 26 AssertFailed();26 WARN(("hook is marked installed, returning failure")); 27 27 KeReleaseSpinLock(&pHook->Lock, Irql); 28 28 return STATUS_UNSUCCESSFUL; -
trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbMon.cpp
r38200 r38262 102 102 case _t: return #_t 103 103 #define VBOXUSBDBG_STRCASE_UNKNOWN(_v) \ 104 default: L og((__FUNCTION__": Unknown Value (0n%d), (0x%x)\n", _v, _v)); return "Unknown"104 default: LOG((__FUNCTION__": Unknown Value (0n%d), (0x%x)\n", _v, _v)); return "Unknown" 105 105 106 106 static const char* vboxUsbDbgStrPnPMn(UCHAR uMn) … … 140 140 for (int i = 0; i < pUnicodeString->Length/2; ++i) 141 141 { 142 L og(("%c", *pStr++));142 LOG(("%c", *pStr++)); 143 143 } 144 144 } … … 182 182 if (Status == STATUS_PENDING) 183 183 { 184 L og(("IoCallDriver returned STATUS_PENDING!!\n"));184 LOG(("IoCallDriver returned STATUS_PENDING!!\n")); 185 185 KeWaitForSingleObject(&Event, Executive, KernelMode, FALSE, NULL); 186 186 Status = IoStatus.Status; … … 190 190 { 191 191 PDEVICE_RELATIONS pRel = (PDEVICE_RELATIONS)IoStatus.Information; 192 L og(("pRel = %p\n", pRel));192 LOG(("pRel = %p\n", pRel)); 193 193 if (VALID_PTR(pRel)) 194 194 { … … 196 196 } 197 197 else 198 L og(("Invalid pointer %p\n", pRel));199 } 200 201 L og(("IoCallDriver returned %x\n", Status));198 LOG(("Invalid pointer %p\n", pRel)); 199 } 200 201 LOG(("IoCallDriver returned %x\n", Status)); 202 202 return Status; 203 203 } … … 213 213 RtlInitUnicodeString(&szStandardHubName, L"\\Driver\\usbhub"); 214 214 215 L og(("Search USB hub\n"));215 LOG(("Search USB hub\n")); 216 216 for (int i = 0; i < 16; i++) 217 217 { … … 238 238 if (Status == STATUS_SUCCESS) 239 239 { 240 L og(("IoGetDeviceObjectPointer for %S returned %p %p\n", szwHubName, pHubDevObj, pHubFileObj));240 LOG(("IoGetDeviceObjectPointer for %S returned %p %p\n", szwHubName, pHubDevObj, pHubFileObj)); 241 241 242 242 if (pHubDevObj->DriverObject … … 245 245 && !RtlCompareUnicodeString(&szStandardHubName, &pHubDevObj->DriverObject->DriverName, TRUE /* case insensitive */)) 246 246 { 247 #if 0 248 Log(("Associated driver")); 249 Log(("%S\n", &pHubDevObj->DriverObject->DriverName.Buffer)); 250 #endif 251 Log(("pnp handler %p\n", pHubDevObj->DriverObject->MajorFunction[IRP_MJ_PNP])); 247 LOG(("Associated driver")); 248 LOG_STRW(pHubDevObj->DriverObject->DriverName.Buffer); 249 LOG(("pnp handler %p\n", pHubDevObj->DriverObject->MajorFunction[IRP_MJ_PNP])); 252 250 253 251 pDrvObj = pHubDevObj->DriverObject; … … 258 256 else 259 257 { 260 Log(("IoGetDeviceObjectPointer returned Status (0x%x) for %S returned\n", Status, szwHubName));258 WARN(("IoGetDeviceObjectPointer returned Status (0x%x) for %S", Status, szwHubName)); 261 259 } 262 260 } 263 261 else 264 262 { 265 AssertFailed();263 WARN(("RtlAnsiStringToUnicodeString failed, Status (0x%x)", Status)); 266 264 } 267 265 } … … 275 273 static NTSTATUS vboxUsbMonHandlePnPIoctl(PDEVICE_OBJECT pDevObj, PIO_STACK_LOCATION pSl, PIO_STATUS_BLOCK pIoStatus) 276 274 { 277 L og(("VBoxUSBMonHandlePnPIoctl IRQL = %d\n", KeGetCurrentIrql()));275 LOG(("VBoxUSBMonHandlePnPIoctl IRQL = %d\n", KeGetCurrentIrql())); 278 276 switch(pSl->MinorFunction) 279 277 { 280 278 case IRP_MN_QUERY_DEVICE_TEXT: 281 279 { 282 L og(("IRP_MN_QUERY_DEVICE_TEXT: pIoStatus->Status = %x\n", pIoStatus->Status));280 LOG(("IRP_MN_QUERY_DEVICE_TEXT: pIoStatus->Status = %x\n", pIoStatus->Status)); 283 281 if (pIoStatus->Status == STATUS_SUCCESS) 284 282 { … … 292 290 { 293 291 case DeviceTextLocationInformation: 294 Log(("DeviceTextLocationInformation %ws\n", pId)); 292 LOG(("DeviceTextLocationInformation")); 293 LOG_STRW(pId); 295 294 break; 296 295 297 296 case DeviceTextDescription: 298 Log(("DeviceTextDescription %ws\n", pId)); 297 LOG(("DeviceTextDescription")); 298 LOG_STRW(pId); 299 299 if (VBoxUsbFltPdoIsFiltered(pDevObj)) 300 300 { … … 306 306 } 307 307 memcpy(pId, szDeviceTextDescription, sizeof(szDeviceTextDescription)); 308 Log(("NEW szDeviceTextDescription %ws\n", pId)); 308 LOG(("NEW szDeviceTextDescription")); 309 LOG_STRW(pId); 309 310 ExFreePool((PVOID)pIoStatus->Information); 310 311 pIoStatus->Information = (ULONG_PTR)pId; … … 316 317 } 317 318 else 318 L og(("Invalid pointer %p\n", pId));319 LOG(("Invalid pointer %p\n", pId)); 319 320 } 320 321 break; … … 323 324 case IRP_MN_QUERY_ID: 324 325 { 325 L og(("IRP_MN_QUERY_ID: Irp->pIoStatus->Status = %x\n", pIoStatus->Status));326 LOG(("IRP_MN_QUERY_ID: Irp->pIoStatus->Status = %x\n", pIoStatus->Status)); 326 327 if (pIoStatus->Status == STATUS_SUCCESS && pDevObj) 327 328 { … … 339 340 { 340 341 case BusQueryInstanceID: 341 Log(("BusQueryInstanceID %ws\n", pId)); 342 LOG(("BusQueryInstanceID")); 343 LOG_STRW(pId); 342 344 break; 343 345 … … 370 372 while(*pId) //MULTI_SZ 371 373 { 372 Log(("BusQueryHardwareIDs %ws\n", pId)); 374 LOG(("BusQueryHardwareIDs")); 375 LOG_STRW(pId); 373 376 while(*pId) pId++; 374 377 pId++; … … 396 399 while(*pTmp) //MULTI_SZ 397 400 { 398 Log(("NEW BusQueryHardwareIDs %ws\n", pTmp)); 401 LOG(("NEW BusQueryHardwareIDs")); 402 LOG_STRW(pTmp); 399 403 while(*pTmp) pTmp++; 400 404 pTmp++; … … 409 413 while(*pId) //MULTI_SZ 410 414 { 411 Log(("BusQueryCompatibleIDs %ws\n", pId)); 415 LOG(("BusQueryCompatibleIDs")); 416 LOG_STRW(pId); 412 417 while(*pId) pId++; 413 418 pId++; … … 427 432 while(*pTmp) //MULTI_SZ 428 433 { 429 Log(("NEW BusQueryCompatibleIDs %ws\n", pTmp)); 434 LOG(("NEW BusQueryCompatibleIDs")); 435 LOG_STRW(pTmp); 430 436 while(*pTmp) pTmp++; 431 437 pTmp++; … … 439 445 } 440 446 else 441 L og(("Invalid pointer %p\n", pId));447 LOG(("Invalid pointer %p\n", pId)); 442 448 } 443 449 break; … … 451 457 case BusRelations: 452 458 { 453 L og(("BusRelations\n"));459 LOG(("BusRelations\n")); 454 460 455 461 if (pIoStatus->Status == STATUS_SUCCESS) 456 462 { 457 463 PDEVICE_RELATIONS pRel = (PDEVICE_RELATIONS)pIoStatus->Information; 458 L og(("pRel = %p\n", pRel));464 LOG(("pRel = %p\n", pRel)); 459 465 if (VALID_PTR(pRel)) 460 466 { … … 462 468 { 463 469 if (VBoxUsbFltPdoIsFiltered(pDevObj)) 464 L og(("New PDO %p\n", pRel->Objects[i]));470 LOG(("New PDO %p\n", pRel->Objects[i])); 465 471 } 466 472 } 467 473 else 468 L og(("Invalid pointer %p\n", pRel));474 LOG(("Invalid pointer %p\n", pRel)); 469 475 } 470 476 break; 471 477 } 472 478 case TargetDeviceRelation: 473 L og(("TargetDeviceRelation\n"));479 LOG(("TargetDeviceRelation\n")); 474 480 break; 475 481 case RemovalRelations: 476 L og(("RemovalRelations\n"));482 LOG(("RemovalRelations\n")); 477 483 break; 478 484 case EjectionRelations: 479 L og(("EjectionRelations\n"));485 LOG(("EjectionRelations\n")); 480 486 break; 481 487 } … … 485 491 case IRP_MN_QUERY_CAPABILITIES: 486 492 { 487 L og(("IRP_MN_QUERY_CAPABILITIES: pIoStatus->Status = %x\n", pIoStatus->Status));493 LOG(("IRP_MN_QUERY_CAPABILITIES: pIoStatus->Status = %x\n", pIoStatus->Status)); 488 494 if (pIoStatus->Status == STATUS_SUCCESS) 489 495 { … … 491 497 if (VALID_PTR(pCaps)) 492 498 { 493 L og(("Caps.SilentInstall = %d\n", pCaps->SilentInstall));494 L og(("Caps.UniqueID = %d\n", pCaps->UniqueID ));495 L og(("Caps.Address = %d\n", pCaps->Address ));496 L og(("Caps.UINumber = %d\n", pCaps->UINumber ));499 LOG(("Caps.SilentInstall = %d\n", pCaps->SilentInstall)); 500 LOG(("Caps.UniqueID = %d\n", pCaps->UniqueID )); 501 LOG(("Caps.Address = %d\n", pCaps->Address )); 502 LOG(("Caps.UINumber = %d\n", pCaps->UINumber )); 497 503 } 498 504 else 499 L og(("Invalid pointer %p\n", pCaps));505 LOG(("Invalid pointer %p\n", pCaps)); 500 506 } 501 507 break; … … 507 513 } /*switch */ 508 514 509 L og(("VBoxUSBMonHandlePnPIoctl returns %x (IRQL = %d)\n", pIoStatus->Status, KeGetCurrentIrql()));515 LOG(("VBoxUSBMonHandlePnPIoctl returns %x (IRQL = %d)\n", pIoStatus->Status, KeGetCurrentIrql())); 510 516 return pIoStatus->Status; 511 517 } … … 583 589 } 584 590 585 L og(("<==PnP: Mn(%s), PDO(0x%p), IRP(0x%p), Status(0x%x), Sl PDO(0x%p), Compl PDO(0x%p)\n",591 LOG(("<==PnP: Mn(%s), PDO(0x%p), IRP(0x%p), Status(0x%x), Sl PDO(0x%p), Compl PDO(0x%p)\n", 586 592 vboxUsbDbgStrPnPMn(pSl->MinorFunction), 587 593 pRealDevObj, pIrp, pIrp->IoStatus.Status, … … 626 632 } 627 633 628 L og(("==>PnP: Mn(%s), PDO(0x%p), IRP(0x%p), Status(0x%x)\n", vboxUsbDbgStrPnPMn(IoGetCurrentIrpStackLocation(pIrp)->MinorFunction), pDevObj, pIrp, pIrp->IoStatus.Status));634 LOG(("==>PnP: Mn(%s), PDO(0x%p), IRP(0x%p), Status(0x%x)\n", vboxUsbDbgStrPnPMn(IoGetCurrentIrpStackLocation(pIrp)->MinorFunction), pDevObj, pIrp, pIrp->IoStatus.Status)); 629 635 630 636 NTSTATUS Status = VBoxUsbHookRequestPassDownHookCompletion(&g_VBoxUsbMonGlobals.UsbHubPnPHook.Hook, pDevObj, pIrp, VBoxUsbPnPCompletion, &pCompletion->Rq); … … 643 649 static bool fIsHookInited = false; 644 650 if (fIsHookInited) 651 { 652 LOG(("hook inited already, success")); 645 653 return STATUS_SUCCESS; 654 } 646 655 PDRIVER_OBJECT pDrvObj = vboxUsbMonHookFindHubDrvObj(); 647 Assert(pDrvObj);648 656 if (pDrvObj) 649 657 { 650 658 VBoxUsbHookInit(&g_VBoxUsbMonGlobals.UsbHubPnPHook.Hook, pDrvObj, IRP_MJ_PNP, VBoxUsbMonPnPHook); 651 659 fIsHookInited = true; 660 LOG(("SUCCESS")); 652 661 return STATUS_SUCCESS; 653 662 } 663 WARN(("hub drv obj not found, fail")); 654 664 return STATUS_UNSUCCESSFUL; 655 665 } … … 662 672 if (g_VBoxUsbMonGlobals.UsbHubPnPHook.fUninitFailed) 663 673 { 664 AssertMsgFailed(("trying to hook usbhub pnp after the unhook failed, do nothing & pretend success..\n"));674 WARN(("trying to hook usbhub pnp after the unhook failed, do nothing & pretend success")); 665 675 return STATUS_SUCCESS; 666 676 } … … 721 731 NULL /* IN PLARGE_INTEGER Timeout */ 722 732 ); 723 Assert(Status == STATUS_SUCCESS);724 733 if (Status == STATUS_SUCCESS) 725 734 { … … 727 736 { 728 737 if (g_VBoxUsbMonGlobals.cOpens++) 729 break; 738 { 739 LOG(("opens: %d, success", g_VBoxUsbMonGlobals.cOpens)); 740 break; 741 } 730 742 731 743 Status = VBoxUsbFltInit(); … … 739 751 { 740 752 Status = STATUS_SUCCESS; 753 LOG(("succeded!!")); 741 754 break; 742 755 } 743 756 else 744 757 { 745 AssertFailed();758 WARN(("vboxUsbMonHookInstall failed, Status (0x%x)", Status)); 746 759 } 747 760 } 761 else 762 { 763 WARN(("vboxUsbMonHookCheckInit failed, Status (0x%x)", Status)); 764 } 748 765 VBoxUsbFltTerm(); 749 766 } 750 767 else 751 768 { 752 AssertFailed();769 WARN(("VBoxUsbFltInit failed, Status (0x%x)", Status)); 753 770 } 754 771 … … 758 775 759 776 KeSetEvent(&g_VBoxUsbMonGlobals.OpenSynchEvent, 0, FALSE); 777 } 778 else 779 { 780 WARN(("KeWaitForSingleObject failed, Status (0x%x)", Status)); 760 781 } 761 782 return Status; … … 776 797 { 777 798 *ppCtx = pFileCtx; 799 LOG(("succeeded!!")); 778 800 return STATUS_SUCCESS; 779 801 } 780 802 else 781 803 { 782 AssertFailed();804 WARN(("VBoxUsbFltCreate failed")); 783 805 } 784 806 vboxUsbMonCheckTermStuff(); … … 786 808 else 787 809 { 788 AssertFailed();810 WARN(("vboxUsbMonCheckInitStuff failed")); 789 811 } 790 812 VBoxUsbMonMemFree(pFileCtx); … … 792 814 else 793 815 { 794 AssertFailed();816 WARN(("VBoxUsbMonMemAllocZ failed")); 795 817 Status = STATUS_NO_MEMORY; 796 818 } … … 820 842 PVBOXUSBMONCTX pCtx = (PVBOXUSBMONCTX)pFileObj->FsContext; 821 843 NTSTATUS Status = vboxUsbMonContextClose(pCtx); 822 Assert(Status == STATUS_SUCCESS);823 844 if (Status != STATUS_SUCCESS) 824 845 { 825 AssertMsgFailed(("close failed with Status 0x%x, prefent unload\n", Status));846 WARN(("vboxUsbMonContextClose failed, Status (0x%x), prefent unload", Status)); 826 847 if (!InterlockedExchange(&g_VBoxUsbMonGlobals.ulPreventUnloadOn, 1)) 827 848 { 828 L ogRel(("ulPreventUnloadOn not set, preventing unload\n"));849 LOGREL(("ulPreventUnloadOn not set, preventing unload\n")); 829 850 UNICODE_STRING UniName; 830 851 PDEVICE_OBJECT pTmpDevObj; … … 836 857 else 837 858 { 838 AssertMsgFailed(("ulPreventUnloadOn already set\n"));859 WARN(("ulPreventUnloadOn already set")); 839 860 } 840 861 Status = STATUS_SUCCESS; … … 854 875 NTSTATUS Status; 855 876 856 L og(("VBoxUSBMonCreate\n"));877 LOG(("VBoxUSBMonCreate\n")); 857 878 858 879 if (pStack->Parameters.Create.Options & FILE_DIRECTORY_FILE) 859 880 { 881 WARN(("trying to open as a directory\n")); 860 882 pIrp->IoStatus.Status = STATUS_NOT_A_DIRECTORY; 861 883 pIrp->IoStatus.Information = 0; … … 871 893 Assert(pCtx); 872 894 pFileObj->FsContext = pCtx; 895 } 896 else 897 { 898 WARN(("vboxUsbMonContextCreate failed Status (0x%x)\n", Status)); 873 899 } 874 900 … … 930 956 PUSBSUP_VERSION pOut = (PUSBSUP_VERSION)pvBuffer; 931 957 932 L og(("SUPUSBFLT_IOCTL_GET_VERSION\n"));958 LOG(("SUPUSBFLT_IOCTL_GET_VERSION\n")); 933 959 if (!pvBuffer || cbOutBuffer != sizeof(*pOut) || cbInBuffer != 0) 934 960 { … … 977 1003 break; 978 1004 } 979 L og(("SUPUSBFLT_IOCTL_REMOVE_FILTER %x\n", *pIn));1005 LOG(("SUPUSBFLT_IOCTL_REMOVE_FILTER %x\n", *pIn)); 980 1006 int rc = VBoxUsbMonFltRemove(pContext, *pIn); 981 1007 if (cbOutBuffer) … … 998 1024 break; 999 1025 } 1000 L og(("SUPUSBFLT_IOCTL_RUN_FILTERS \n"));1026 LOG(("SUPUSBFLT_IOCTL_RUN_FILTERS \n")); 1001 1027 Status = VBoxUsbMonRunFilters(pContext); 1002 1028 Assert(Status == STATUS_SUCCESS); … … 1096 1122 PVBOXUSBIDC_VERSION pOut = (PVBOXUSBIDC_VERSION)pvBuffer; 1097 1123 1098 L og(("VBOXUSBIDC_INTERNAL_IOCTL_GET_VERSION\n"));1124 LOG(("VBOXUSBIDC_INTERNAL_IOCTL_GET_VERSION\n")); 1099 1125 if (!pvBuffer) 1100 1126 { … … 1112 1138 PVBOXUSBIDC_PROXY_STARTUP pOut = (PVBOXUSBIDC_PROXY_STARTUP)pvBuffer; 1113 1139 1114 L og(("VBOXUSBIDC_INTERNAL_IOCTL_PROXY_STARTUP\n"));1140 LOG(("VBOXUSBIDC_INTERNAL_IOCTL_PROXY_STARTUP\n")); 1115 1141 if (!pvBuffer) 1116 1142 { … … 1128 1154 PVBOXUSBIDC_PROXY_TEARDOWN pOut = (PVBOXUSBIDC_PROXY_TEARDOWN)pvBuffer; 1129 1155 1130 L og(("VBOXUSBIDC_INTERNAL_IOCTL_PROXY_TEARDOWN\n"));1156 LOG(("VBOXUSBIDC_INTERNAL_IOCTL_PROXY_TEARDOWN\n")); 1131 1157 if (!pvBuffer) 1132 1158 { … … 1179 1205 static void _stdcall VBoxUsbMonUnload(PDRIVER_OBJECT pDrvObj) 1180 1206 { 1181 L og(("VBoxUSBMonUnload pDrvObj (0x%p)\n", pDrvObj));1207 LOG(("VBoxUSBMonUnload pDrvObj (0x%p)\n", pDrvObj)); 1182 1208 1183 1209 IoReleaseRemoveLockAndWait(&g_VBoxUsbMonGlobals.RmLock, &g_VBoxUsbMonGlobals); … … 1221 1247 #endif 1222 1248 1223 L og(("VBoxUSBMon::DriverEntry\n"));1249 LOG(("VBoxUSBMon::DriverEntry\n")); 1224 1250 1225 1251 memset (&g_VBoxUsbMonGlobals, 0, sizeof (g_VBoxUsbMonGlobals)); … … 1251 1277 1252 1278 g_VBoxUsbMonGlobals.pDevObj = pDevObj; 1253 L og(("VBoxUSBMon::DriverEntry returning STATUS_SUCCESS\n"));1279 LOG(("VBoxUSBMon::DriverEntry returning STATUS_SUCCESS\n")); 1254 1280 return STATUS_SUCCESS; 1255 1281 } -
trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbMon.h
r38200 r38262 31 31 #endif 32 32 33 #define VBOX_DBG_LOG_NAME "USBMon" 34 #include "../../../win/VBoxDbgLog.h" 33 35 #include "../cmn/VBoxDrvTool.h" 34 36 #include "../cmn/VBoxUsbTool.h"
Note:
See TracChangeset
for help on using the changeset viewer.