标签:col pre card return AC fail XML pci file
1 int CNetworkCard::get_network_card(vector<CNetworkCard> & vecCardList) 2 { 3 string strXml; 4 if(read_file(strXml, "lshw -xml") < 0) 5 { 6 LERROR("get file content faild"); 7 return -1; 8 } 9 10 if(get_network_card_mac(vecCardList, strXml) < 0) 11 { 12 LERROR("get pci-mac faild"); 13 return -1; 14 } 15 16 return 0; 17 }
标签:col pre card return AC fail XML pci file
原文地址:https://www.cnblogs.com/baihl/p/8758482.html