Changeset 69997 in vbox for trunk/src/VBox
- Timestamp:
- Dec 7, 2017 5:41:26 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 119511
- Location:
- trunk/src/VBox/Additions/common/VBoxService
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp
r69987 r69997 338 338 * 339 339 * @param pszFormat The message text. 340 * @param ...Format arguments.341 */ 342 void VGSvcLog (const char *pszFormat, ...)340 * @param va Format arguments. 341 */ 342 void VGSvcLogV(const char *pszFormat, va_list va) 343 343 { 344 344 #ifdef DEBUG … … 347 347 { 348 348 #endif 349 va_list args;350 va_start(args, pszFormat);351 349 char *psz = NULL; 352 RTStrAPrintfV(&psz, pszFormat, args); 353 va_end(args); 350 RTStrAPrintfV(&psz, pszFormat, va); 354 351 355 352 AssertPtr(psz); … … 459 456 if (iLevel <= g_cVerbosity) 460 457 { 461 va_list args; 462 va_start(args, pszFormat); 463 464 VGSvcLog(pszFormat, args); 465 466 va_end(args); 458 va_list va; 459 va_start(va, pszFormat); 460 VGSvcLogV(pszFormat, va); 461 va_end(va); 467 462 } 468 463 } -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceInternal.h
r69987 r69997 28 28 #include <iprt/critsect.h> 29 29 #include <iprt/path.h> /* RTPATH_MAX */ 30 #include <iprt/stdarg.h> 30 31 31 32 #include <VBox/VBoxGuestLib.h> … … 185 186 extern void VGSvcVerbose(unsigned iLevel, const char *pszFormat, ...); 186 187 extern int VGSvcLogCreate(const char *pszLogFile); 187 extern void VGSvcLog (const char *pszFormat, ...);188 extern void VGSvcLogV(const char *pszFormat, va_list va); 188 189 extern void VGSvcLogDestroy(void); 189 190 extern int VGSvcArgUInt32(int argc, char **argv, const char *psz, int *pi, uint32_t *pu32, -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceTimeSync.cpp
r69995 r69997 259 259 if (iLevel <= g_cTimeSyncVerbosity) 260 260 { 261 va_list args; 262 va_start(args, pszFormat); 263 264 VGSvcLog(pszFormat, args); 265 266 va_end(args); 261 va_list va; 262 va_start(va, pszFormat); 263 VGSvcLogV(pszFormat, va); 264 va_end(va); 267 265 } 268 266 }
Note:
See TracChangeset
for help on using the changeset viewer.