Changeset 43806 in vbox
- Timestamp:
- Nov 5, 2012 5:41:26 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 81821
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r43754 r43806 1632 1632 { "SataLUN1", "SataLUN2", "SataLUN3", "SataLUN4" }; 1633 1633 1634 LONG lPortNum = 0;1635 1634 LONG lPortLUN[MAX_SATA_LUN_COUNT]; 1636 1635 LONG lPortUsed[MAX_SATA_PORTS]; 1637 1636 uint32_t u32HDSataPortCount = 0; 1638 uint32_t u32MaxPortCount = MAX_SATA_LUN_COUNT;1639 size_t uNumAttachments = 0;1640 DeviceType_T lType;1641 com::SafeIfaceArray<IMediumAttachment> atts;1642 1637 1643 1638 /* init to max value */ … … 1649 1644 } 1650 1645 1651 1646 com::SafeIfaceArray<IMediumAttachment> atts; 1652 1647 hrc = pMachine->GetMediumAttachmentsOfController(controllerName.raw(), 1653 1648 ComSafeArrayAsOutParam(atts)); H(); 1654 uNumAttachments = atts.size();1649 size_t uNumAttachments = atts.size(); 1655 1650 if (uNumAttachments > MAX_SATA_PORTS) 1656 1651 { … … 1665 1660 { 1666 1661 IMediumAttachment *pMediumAtt = atts[j]; 1662 LONG lPortNum = 0; 1667 1663 hrc = pMediumAtt->COMGETTER(Port)(&lPortNum); H(); 1668 1664 if(SUCCEEDED(hrc)) 1665 { 1666 DeviceType_T lType; 1669 1667 hrc = pMediumAtt->COMGETTER(Type)(&lType); H(); 1670 1668 if(SUCCEEDED(hrc) && lType == DeviceType_HardDisk) … … 1676 1674 LogFlowFunc(("HD Sata port Count=%d\n", u32HDSataPortCount)); 1677 1675 } 1676 } 1678 1677 } 1679 1678 … … 1682 1681 * to save details for every 30 ports 1683 1682 */ 1683 uint32_t u32MaxPortCount = MAX_SATA_LUN_COUNT; 1684 1684 if (u32HDSataPortCount < MAX_SATA_LUN_COUNT) 1685 1685 u32MaxPortCount = u32HDSataPortCount; … … 1689 1689 u32HDSataPortCount); 1690 1690 if (pBiosCfg) 1691 { 1691 1692 for (size_t j = 0; j < u32MaxPortCount; j++) 1692 1693 { … … 1694 1695 LogFlowFunc(("Top %d ports = %s, %d\n", j, s_apszBiosConfig[j], lPortLUN[j])); 1695 1696 } 1697 } 1696 1698 } 1697 1699
Note:
See TracChangeset
for help on using the changeset viewer.