VirtualBox

Changeset 11354 in vbox for trunk/src


Ignore:
Timestamp:
Aug 12, 2008 1:00:51 PM (16 years ago)
Author:
vboxsync
Message:

Main: Added OS info to the release log header.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r11351 r11354  
    6767#include <iprt/ldr.h>
    6868#include <iprt/cpputils.h>
     69#include <iprt/system.h>
    6970
    7071#include <VBox/vmapi.h>
     
    42464247        /* some introductory information */
    42474248        RTTIMESPEC timeSpec;
    4248         char nowUct[64];
    4249         RTTimeSpecToString(RTTimeNow(&timeSpec), nowUct, sizeof(nowUct));
     4249        char szTmp[256];
     4250        RTTimeSpecToString(RTTimeNow(&timeSpec), szTmp, sizeof(szTmp));
    42504251        RTLogRelLogger(loggerRelease, 0, ~0U,
    42514252                       "VirtualBox %s r%d %s (%s %s) release log\n"
    42524253                       "Log opened %s\n",
    42534254                       VBOX_VERSION_STRING, VBoxSVNRev (), VBOX_BUILD_TARGET,
    4254                        __DATE__, __TIME__, nowUct);
     4255                       __DATE__, __TIME__, szTmp);
     4256
     4257        vrc = RTSystemQueryOSInfo(RTSYSOSINFO_PRODUCT, szTmp, sizeof(szTmp));
     4258        if (RT_SUCCESS(vrc) || vrc == VERR_BUFFER_OVERFLOW)
     4259            RTLogRelLogger(loggerRelease, 0, ~0U, "OS Product: %s\n", szTmp);
     4260        vrc = RTSystemQueryOSInfo(RTSYSOSINFO_RELEASE, szTmp, sizeof(szTmp));
     4261        if (RT_SUCCESS(vrc) || vrc == VERR_BUFFER_OVERFLOW)
     4262            RTLogRelLogger(loggerRelease, 0, ~0U, "OS Release: %s\n", szTmp);
     4263        vrc = RTSystemQueryOSInfo(RTSYSOSINFO_VERSION, szTmp, sizeof(szTmp));
     4264        if (RT_SUCCESS(vrc) || vrc == VERR_BUFFER_OVERFLOW)
     4265            RTLogRelLogger(loggerRelease, 0, ~0U, "OS Version: %s\n", szTmp);
     4266        vrc = RTSystemQueryOSInfo(RTSYSOSINFO_SERVICE_PACK, szTmp, sizeof(szTmp));
     4267        if (RT_SUCCESS(vrc) || vrc == VERR_BUFFER_OVERFLOW)
     4268            RTLogRelLogger(loggerRelease, 0, ~0U, "OS Service Pack: %s\n", szTmp);
    42554269
    42564270        /* register this logger as the release logger */
Note: See TracChangeset for help on using the changeset viewer.

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