- Timestamp:
- Aug 12, 2008 1:00:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r11351 r11354 67 67 #include <iprt/ldr.h> 68 68 #include <iprt/cpputils.h> 69 #include <iprt/system.h> 69 70 70 71 #include <VBox/vmapi.h> … … 4246 4247 /* some introductory information */ 4247 4248 RTTIMESPEC timeSpec; 4248 char nowUct[64];4249 RTTimeSpecToString(RTTimeNow(&timeSpec), nowUct, sizeof(nowUct));4249 char szTmp[256]; 4250 RTTimeSpecToString(RTTimeNow(&timeSpec), szTmp, sizeof(szTmp)); 4250 4251 RTLogRelLogger(loggerRelease, 0, ~0U, 4251 4252 "VirtualBox %s r%d %s (%s %s) release log\n" 4252 4253 "Log opened %s\n", 4253 4254 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); 4255 4269 4256 4270 /* register this logger as the release logger */
Note:
See TracChangeset
for help on using the changeset viewer.