VirtualBox

Ignore:
Timestamp:
Feb 10, 2016 12:32:24 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
105469
Message:

BugReportTool(bugref:8169): Added querying event log, driver services, update history, introduced time stamp into default output name, fixed stream init bug

Location:
trunk/src/VBox/Frontends/VBoxBugReport
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBugReport/VBoxBugReport.cpp

    r59570 r59628  
    213213
    214214BugReportCommand::BugReportCommand(const char *pszTitle, const char *pszExec, ...)
    215     : BugReportItem(pszTitle)
     215    : BugReportItem(pszTitle), m_Strm(NULL)
    216216{
    217217    unsigned cArgs = 0;
     
    594594        while(0);
    595595
     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();
    596605        BugReport *pReport;
    597606        if (fTextOutput)
    598             pReport = new BugReportText(pszOutputFile ? pszOutputFile : "bugreport.txt");
     607            pReport = new BugReportText(pszOutputFile);
    599608        else
    600             pReport = new BugReportTarGzip(pszOutputFile ? pszOutputFile : "bugreport.tgz");
     609            pReport = new BugReportTarGzip(pszOutputFile);
    601610        createBugReport(pReport, homeDir, list);
    602611        pReport->complete();
  • trunk/src/VBox/Frontends/VBoxBugReport/VBoxBugReportWin.cpp

    r59569 r59628  
    230230    report->addItem(new BugReportFile(PathJoin(WinInfDir.c_str(), "setupapi.dev.log"), "setupapi.dev.log"));
    231231    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.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette