Changeset 36341 in vbox for trunk/src/VBox/HostDrivers/VBoxUSB
- Timestamp:
- Mar 22, 2011 1:27:34 PM (14 years ago)
- Location:
- trunk/src/VBox/HostDrivers/VBoxUSB/solaris
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/solaris/USBLib-solaris.cpp
r33464 r36341 201 201 VBOXUSBREQ_CLIENT_INFO Req; 202 202 bzero(&Req, sizeof(Req)); 203 RTStrPrintf(Req. achDeviceIdent, sizeof(Req.achDeviceIdent), "%s", pszDeviceIdent);203 RTStrPrintf(Req.szDeviceIdent, sizeof(Req.szDeviceIdent), "%s", pszDeviceIdent); 204 204 205 205 int rc = usblibDoIOCtl(VBOXUSBMON_IOCTL_CLIENT_INFO, &Req, sizeof(Req)); … … 207 207 { 208 208 *pInstance = Req.Instance; 209 rc = RTStrDupEx(ppszClientPath, Req. achClientPath);209 rc = RTStrDupEx(ppszClientPath, Req.szClientPath); 210 210 if (RT_SUCCESS(rc)) 211 211 return VINF_SUCCESS; 212 212 213 LogRel((USBLIBR3 ":USBLibGetClientInfo RTStr APrintf failed! rc=%Rrc achClientPath=%s\n", rc, Req.achClientPath));213 LogRel((USBLIBR3 ":USBLibGetClientInfo RTStrDupEx failed! rc=%Rrc szClientPath=%s\n", rc, Req.szClientPath)); 214 214 } 215 215 else -
trunk/src/VBox/HostDrivers/VBoxUSB/solaris/VBoxUSB-solaris.c
r33595 r36341 556 556 char szDevicePath[MAXPATHLEN]; 557 557 ddi_pathname(pState->pDip, szDevicePath); 558 RTStrPrintf(pState->ClientInfo. achClientPath, sizeof(pState->ClientInfo.achClientPath),558 RTStrPrintf(pState->ClientInfo.szClientPath, sizeof(pState->ClientInfo.szClientPath), 559 559 "/devices%s:%s", 560 560 szDevicePath, 561 561 DEVICE_NAME); 562 562 RTPathStripFilename(szDevicePath); 563 RTStrPrintf(pState->ClientInfo. achDeviceIdent, sizeof(pState->ClientInfo.achDeviceIdent),563 RTStrPrintf(pState->ClientInfo.szDeviceIdent, sizeof(pState->ClientInfo.szDeviceIdent), 564 564 "%#x:%#x:%d:%s", 565 565 pState->pDevDesc->dev_descr->idVendor, … … 570 570 rc = VBoxUSBMonSolarisRegisterClient(pState->pDip, &pState->ClientInfo); 571 571 if (RT_SUCCESS(rc)) 572 { 573 LogRel((DEVICE_NAME ": Captured %s %s\n", 574 pState->pDevDesc->dev_product ? pState->pDevDesc->dev_product : "<Unnamed USB device>", 575 pState->ClientInfo.szDeviceIdent)); 576 572 577 return DDI_SUCCESS; 578 } 573 579 else 574 580 { 575 581 LogRel((DEVICE_NAME ":VBoxUSBMonSolarisRegisterClient failed! rc=%d path=%s instance=%d\n", 576 rc, pState->ClientInfo. achClientPath, instance));582 rc, pState->ClientInfo.szClientPath, instance)); 577 583 } 578 584 … … 738 744 739 745 ddi_remove_minor_node(pState->pDip, NULL); 746 747 LogRel((DEVICE_NAME ": Released %s %s\n", 748 pState->pDevDesc->dev_product ? pState->pDevDesc->dev_product : "<Unnamed USB device>", 749 pState->ClientInfo.szDeviceIdent)); 740 750 741 751 ddi_soft_state_free(g_pVBoxUSBSolarisState, instance); -
trunk/src/VBox/HostDrivers/VBoxUSB/solaris/VBoxUSBMon-solaris.c
r36031 r36341 865 865 while (pCur) 866 866 { 867 if (strncmp(pClientInfo-> achDeviceIdent, pCur->Info.achDeviceIdent, sizeof(pCur->Info.achDeviceIdent) - 1) == 0)867 if (strncmp(pClientInfo->szDeviceIdent, pCur->Info.szDeviceIdent, sizeof(pCur->Info.szDeviceIdent) - 1) == 0) 868 868 { 869 869 pClientInfo->Instance = pCur->Info.Instance; 870 RTStrPrintf(pClientInfo-> achClientPath, sizeof(pClientInfo->achClientPath), "%s", pCur->Info.achClientPath);870 RTStrPrintf(pClientInfo->szClientPath, sizeof(pClientInfo->szClientPath), "%s", pCur->Info.szClientPath); 871 871 872 872 mutex_exit(&g_VBoxUSBMonSolarisMtx); … … 881 881 mutex_exit(&g_VBoxUSBMonSolarisMtx); 882 882 883 LogRel((DEVICE_NAME ":vboxUSBMonSolarisClientInfo Failed to find client %s\n", pClientInfo-> achDeviceIdent));883 LogRel((DEVICE_NAME ":vboxUSBMonSolarisClientInfo Failed to find client %s\n", pClientInfo->szDeviceIdent)); 884 884 return VERR_NOT_FOUND; 885 885 } … … 916 916 917 917 LogFlow((DEVICE_NAME ":VBoxUSBMonSolarisRegisterClient registered. %d %s %s\n", 918 pClient->Info.Instance, pClient->Info. achClientPath, pClient->Info.achDeviceIdent));918 pClient->Info.Instance, pClient->Info.szClientPath, pClient->Info.achDeviceIdent)); 919 919 920 920 return VINF_SUCCESS; … … 964 964 965 965 LogFlow((DEVICE_NAME ":VBoxUSBMonSolarisUnregisterClient unregistered. %d %s %s\n", 966 pCur->Info.Instance, pCur->Info. achClientPath, pCur->Info.achDeviceIdent));966 pCur->Info.Instance, pCur->Info.szClientPath, pCur->Info.szDeviceIdent)); 967 967 RTMemFree(pCur); 968 968 pCur = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.