Changeset 59628 in vbox for trunk/src/VBox/Frontends/VBoxBugReport
- Timestamp:
- Feb 10, 2016 12:32:24 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 105469
- Location:
- trunk/src/VBox/Frontends/VBoxBugReport
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxBugReport/VBoxBugReport.cpp
r59570 r59628 213 213 214 214 BugReportCommand::BugReportCommand(const char *pszTitle, const char *pszExec, ...) 215 : BugReportItem(pszTitle) 215 : BugReportItem(pszTitle), m_Strm(NULL) 216 216 { 217 217 unsigned cArgs = 0; … … 594 594 while(0); 595 595 596 RTTIMESPEC TimeSpec; 597 RTTIME Time; 598 RTTimeExplode(&Time, RTTimeNow(&TimeSpec)); 599 RTCStringFmt strOutFile("%04d-%02d-%02d-%02d-%02d-%02d-bugreport.%s", 600 Time.i32Year, Time.u8Month, Time.u8MonthDay, 601 Time.u8Hour, Time.u8Minute, Time.u8Second, 602 fTextOutput ? "txt" : "tgz"); 603 if (!pszOutputFile) 604 pszOutputFile = strOutFile.c_str(); 596 605 BugReport *pReport; 597 606 if (fTextOutput) 598 pReport = new BugReportText(pszOutputFile ? pszOutputFile : "bugreport.txt");607 pReport = new BugReportText(pszOutputFile); 599 608 else 600 pReport = new BugReportTarGzip(pszOutputFile ? pszOutputFile : "bugreport.tgz");609 pReport = new BugReportTarGzip(pszOutputFile); 601 610 createBugReport(pReport, homeDir, list); 602 611 pReport->complete(); -
trunk/src/VBox/Frontends/VBoxBugReport/VBoxBugReportWin.cpp
r59569 r59628 230 230 report->addItem(new BugReportFile(PathJoin(WinInfDir.c_str(), "setupapi.dev.log"), "setupapi.dev.log")); 231 231 report->addItem(new BugReportNetworkAdaptersWin); 232 } 232 RTCStringFmt WinSysDir("%ls/System32", szWinDir); 233 report->addItem(new BugReportCommand("SystemEvents", PathJoin(WinSysDir.c_str(), "wevtutil.exe"), 234 "qe", "System", "/f:text", 235 "/q:*[System[Provider[@Name='VBoxUSBMon']]]", NULL)); 236 report->addItem(new BugReportCommand("UpdateHistory", PathJoin(WinSysDir.c_str(), "wbem/wmic.exe"), 237 "qfe", "list", "brief", NULL)); 238 report->addItem(new BugReportCommand("DriverServices", PathJoin(WinSysDir.c_str(), "sc.exe"), 239 "query", "type=", "driver", "state=", "all", NULL)); 240 }
Note:
See TracChangeset
for help on using the changeset viewer.