Changeset 85222 in vbox for trunk/src/VBox/Main/xml/ovfreader.cpp
- Timestamp:
- Jul 11, 2020 4:16:39 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/ovfreader.cpp
r84532 r85222 447 447 continue; 448 448 vsys.vecHardwareItems.push_back(pItem); 449 pItem-> ulLineNumber = pelmItem->getLineNumber();449 pItem->m_iLineNumber = pelmItem->getLineNumber(); 450 450 pItem->fillItem(pelmItem); 451 451 … … 469 469 else 470 470 #if 1 471 LogRel(("OVFREADER: Warning reading '%s'! Duplicate ulInstanceID %u on line % u, previous at %u!\n",472 m_strPath.c_str(), pItem->ulInstanceID, pItem-> ulLineNumber, itDup->second->ulLineNumber));471 LogRel(("OVFREADER: Warning reading '%s'! Duplicate ulInstanceID %u on line %d, previous at %d!\n", 472 m_strPath.c_str(), pItem->ulInstanceID, pItem->m_iLineNumber, itDup->second->m_iLineNumber)); 473 473 #else 474 throw OVFLogicError(N_("Error reading '%s': Duplicate ulInstanceID %u on line % u, previous at %u"),474 throw OVFLogicError(N_("Error reading '%s': Duplicate ulInstanceID %u on line %d, previous at %d"), 475 475 m_strPath.c_str(), pItem->ulInstanceID, 476 pItem-> ulLineNumber, itDup->second->ulLineNumber);476 pItem->m_iLineNumber, itDup->second->m_iLineNumber); 477 477 #endif 478 478 } … … 507 507 i.ullVirtualQuantity, 508 508 UINT16_MAX, 509 i. ulLineNumber);509 i.m_iLineNumber); 510 510 break; 511 511 … … 520 520 m_strPath.c_str(), 521 521 i.strAllocationUnits.c_str(), 522 i. ulLineNumber);522 i.m_iLineNumber); 523 523 break; 524 524 … … 675 675 m_strPath.c_str(), 676 676 ResourceType_OtherStorageDevice, 677 i. ulLineNumber, i.strResourceSubType.c_str() );677 i.m_iLineNumber, i.strResourceSubType.c_str() ); 678 678 break; 679 679 } … … 712 712 m_strPath.c_str(), 713 713 i.resourceType, 714 i. ulLineNumber);714 i.m_iLineNumber); 715 715 } 716 716 } … … 757 757 i.ulInstanceID, 758 758 i.ulParent, 759 i. ulLineNumber);759 i.m_iLineNumber); 760 760 761 761 VirtualDisk vd; … … 778 778 i.ulInstanceID, 779 779 i.strHostResource.c_str(), 780 i. ulLineNumber);780 i.m_iLineNumber); 781 781 782 782 vsys.mapVirtualDisks[vd.strDiskId] = vd; … … 891 891 // throw OVFLogicError(N_("Unknown element \"%s\" under Item element, line %d"), 892 892 // pcszItemChildName, 893 // ulLineNumber);893 // m_iLineNumber); 894 894 } 895 895 } … … 900 900 if (resourceType == 0) 901 901 throw OVFLogicError(N_("Empty element ResourceType under %s element, line %d. see DMTF Schema Documentation %s"), 902 name.c_str(), ulLineNumber, DTMF_SPECS_URI);902 name.c_str(), m_iLineNumber, DTMF_SPECS_URI); 903 903 904 904 /* Don't be too uptight about the ulInstanceID value. There are OVAs out … … 913 913 || resourceType == ResourceType_IBHCA ) //?? 914 914 throw OVFLogicError(N_("Element InstanceID is absent under %s element, line %d. see DMTF Schema Documentation %s"), 915 name.c_str(), ulLineNumber, DTMF_SPECS_URI);915 name.c_str(), m_iLineNumber, DTMF_SPECS_URI); 916 916 else 917 917 LogRel(("OVFREADER: Warning: Ignoring missing or invalid ulInstanceID under element %s, line %u\n", 918 name.c_str(), ulLineNumber));918 name.c_str(), m_iLineNumber)); 919 919 } 920 920 } … … 995 995 { 996 996 //throw OVFLogicError(N_("Access type is unknown under %s element, line %d"), 997 // name.c_str(), ulLineNumber);997 // name.c_str(), m_iLineNumber); 998 998 } 999 999 … … 1002 1002 throw OVFLogicError(N_("Element HostResourceBlockSize is absent under %s element, line %d. " 1003 1003 "see DMTF Schema Documentation %s"), 1004 name.c_str(), ulLineNumber, DTMF_SPECS_URI);1004 name.c_str(), m_iLineNumber, DTMF_SPECS_URI); 1005 1005 } 1006 1006 … … 1009 1009 throw OVFLogicError(N_("Element VirtualResourceBlockSize is absent under %s element, line %d. " 1010 1010 "see DMTF Schema Documentation %s"), 1011 name.c_str(), ulLineNumber, DTMF_SPECS_URI);1011 name.c_str(), m_iLineNumber, DTMF_SPECS_URI); 1012 1012 } 1013 1013 … … 1016 1016 throw OVFLogicError(N_("Element VirtualQuantityUnits is absent under %s element, line %d. " 1017 1017 "see DMTF Schema Documentation %s"), 1018 name.c_str(), ulLineNumber, DTMF_SPECS_URI);1018 name.c_str(), m_iLineNumber, DTMF_SPECS_URI); 1019 1019 } 1020 1020 … … 1028 1028 "It's needed to change on \"byte\". " 1029 1029 "see DMTF Schema Documentation %s"), 1030 name.c_str(), ulLineNumber, DTMF_SPECS_URI);1030 name.c_str(), m_iLineNumber, DTMF_SPECS_URI); 1031 1031 } 1032 1032 }
Note:
See TracChangeset
for help on using the changeset viewer.