Changeset 67806 in vbox for trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp
- Timestamp:
- Jul 5, 2017 3:48:20 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 116730
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp
r65648 r67806 5595 5595 for (unsigned i = 0; i < pThis->cDeviceStates; i++) 5596 5596 { 5597 char szName[24];5598 5597 PLSILOGICDEVICE pDevice = &pThis->paDeviceStates[i]; 5599 5598 … … 5613 5612 pDevice->ILed.pfnQueryStatusLed = lsilogicR3DeviceQueryStatusLed; 5614 5613 5615 RTStrPrintf(szName, sizeof(szName), "Device%u", i); 5614 char *pszName; 5615 if (RTStrAPrintf(&pszName, "Device%u", i) <= 0) 5616 AssertLogRelFailedReturn(VERR_NO_MEMORY); 5616 5617 5617 5618 /* Attach SCSI driver. */ 5618 rc = PDMDevHlpDriverAttach(pDevIns, pDevice->iLUN, &pDevice->IBase, &pDevice->pDrvBase, szName);5619 rc = PDMDevHlpDriverAttach(pDevIns, pDevice->iLUN, &pDevice->IBase, &pDevice->pDrvBase, pszName); 5619 5620 if (RT_SUCCESS(rc)) 5620 5621 { … … 5641 5642 pDevice->pDrvBase = NULL; 5642 5643 rc = VINF_SUCCESS; 5643 Log(("LsiLogic: no driver attached to device %s\n", szName));5644 Log(("LsiLogic: no driver attached to device %s\n", pszName)); 5644 5645 } 5645 5646 else 5646 5647 { 5647 AssertLogRelMsgFailed(("LsiLogic: Failed to attach %s\n", szName));5648 AssertLogRelMsgFailed(("LsiLogic: Failed to attach %s\n", pszName)); 5648 5649 return rc; 5649 5650 }
Note:
See TracChangeset
for help on using the changeset viewer.