Changeset 98477 in vbox for trunk/src/VBox
- Timestamp:
- Feb 3, 2023 10:37:40 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxBugReport/VBoxBugReport.cpp
r98320 r98477 624 624 report->addItem(new BugReportCommand("HostUsbDevices", g_pszVBoxManage, "list", "usbhost", NULL)); 625 625 report->addItem(new BugReportCommand("HostUsbFilters", g_pszVBoxManage, "list", "usbfilters", NULL)); 626 626 627 for (MachineInfoList::iterator it = machines.begin(); it != machines.end(); ++it) 627 628 { 628 VBRDir VmDir(PathJoin((*it)->getLogPath(), "VBox.log*")); 629 const char *pcszVmLogFile = VmDir.next(); 630 while (pcszVmLogFile) 629 static const char * const s_apszLogFilePatterns[] = { "VBox.log*", "VBoxHardening.log" }; 630 for (size_t iPat = 0; iPat < RT_ELEMENTS(s_apszLogFilePatterns); iPat++) 631 631 { 632 report->addItem(new BugReportFile(PathJoin((*it)->getLogPath(), pcszVmLogFile), 633 PathJoin((*it)->getName(), pcszVmLogFile))); 634 pcszVmLogFile = VmDir.next(); 632 VBRDir VmLogFiles(PathJoin((*it)->getLogPath(), s_apszLogFilePatterns[iPat])); 633 const char *pcszVmLogFile = VmLogFiles.next(); 634 while (pcszVmLogFile) 635 { 636 report->addItem(new BugReportFile(PathJoin((*it)->getLogPath(), pcszVmLogFile), 637 PathJoin((*it)->getName(), pcszVmLogFile))); 638 pcszVmLogFile = VmLogFiles.next(); 639 } 635 640 } 636 641 report->addItem(new BugReportFile((*it)->getSettingsFile(), 637 PathJoin((*it)->getName(), RTPathFilename((*it)->getSettingsFile()))));642 PathJoin((*it)->getName(), RTPathFilename((*it)->getSettingsFile())))); 638 643 report->addItem(new BugReportCommand(PathJoin((*it)->getName(), "GuestProperties"), 639 g_pszVBoxManage, "guestproperty", "enumerate",640 (*it)->getName(), NULL));644 g_pszVBoxManage, "guestproperty", "enumerate", 645 (*it)->getName(), NULL)); 641 646 } 642 647
Note:
See TracChangeset
for help on using the changeset viewer.