Changeset 83612 in vbox
- Timestamp:
- Apr 7, 2020 5:17:25 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 137025
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp
r83595 r83612 2266 2266 pszSuffix = strchr(g_szLogFile, '\0'); 2267 2267 size_t cchBase = pszSuffix - g_szLogFile; 2268 2269 RTTIMESPEC Now; 2270 RTTimeNow(&Now); 2271 char szTime[64]; 2272 RTTimeSpecToString(&Now, szTime, sizeof(szTime)); 2273 2274 /* Replace out characters not allowed on Windows platforms, put in by RTTimeSpecToString(). */ 2275 static const RTUNICP s_uszValidRangePairs[] = 2276 { 2277 ' ', ' ', 2278 '(', ')', 2279 '-', '.', 2280 '0', '9', 2281 'A', 'Z', 2282 'a', 'z', 2283 '_', '_', 2284 0xa0, 0xd7af, 2285 '\0' 2286 }; 2287 ssize_t cReplaced = RTStrPurgeComplementSet(szTime, s_uszValidRangePairs, '_' /* chReplacement */); 2288 AssertReturn(cReplaced, VERR_INVALID_UTF8_ENCODING); 2289 2268 2290 #ifndef DEBUG 2269 RTStrPrintf(szParmLogFile, sizeof(szParmLogFile), "%.*s-%RU32-%s %s",2270 cchBase, g_szLogFile, pSessionStartupInfo->uSessionID, pSessionStartupInfo->szUser, pszSuffix);2291 RTStrPrintf(szParmLogFile, sizeof(szParmLogFile), "%.*s-%RU32-%s-%s%s", 2292 cchBase, g_szLogFile, pSessionStartupInfo->uSessionID, pSessionStartupInfo->szUser, szTime, pszSuffix); 2271 2293 #else 2272 RTStrPrintf(szParmLogFile, sizeof(szParmLogFile), "%.*s-%RU32-%RU32-%s %s",2294 RTStrPrintf(szParmLogFile, sizeof(szParmLogFile), "%.*s-%RU32-%RU32-%s-%s%s", 2273 2295 cchBase, g_szLogFile, pSessionStartupInfo->uSessionID, uCtrlSessionThread, 2274 pSessionStartupInfo->szUser, pszSuffix);2296 pSessionStartupInfo->szUser, szTime, pszSuffix); 2275 2297 #endif 2276 2298 apszArgs[idxArg++] = "--logfile";
Note:
See TracChangeset
for help on using the changeset viewer.