Changeset 89387 in vbox for trunk/src/VBox/ValidationKit/utils
- Timestamp:
- May 31, 2021 9:55:04 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 144738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp
r89383 r89387 48 48 49 49 #include <VBox/version.h> 50 #include <VBox/log.h> 50 51 51 52 #ifdef RT_OS_WINDOWS … … 81 82 case 'q': \ 82 83 g_uVerbosity = 0; \ 84 if (g_pRelLogger) \ 85 RTLogGroupSettings(g_pRelLogger, "all=0 all.e"); \ 83 86 break; \ 84 87 \ 85 88 case 'v': \ 86 89 g_uVerbosity++; \ 90 if (g_pRelLogger) \ 91 RTLogGroupSettings(g_pRelLogger, g_uVerbosity == 1 ? "all.e.l" : g_uVerbosity == 2 ? "all.e.l.f" : "all=~0"); \ 87 92 break; \ 88 93 \ … … 374 379 /** The test handle. */ 375 380 static RTTEST g_hTest; 381 /** The release logger. */ 382 static PRTLOGGER g_pRelLogger = NULL; 376 383 /** The current verbosity level. */ 377 384 static unsigned g_uVerbosity = 0; … … 2403 2410 * First we must open the file and determin the format. 2404 2411 */ 2412 RTERRINFOSTATIC ErrInfo; 2405 2413 AUDIOTESTWAVEFILE WaveFile; 2406 int rc = AudioTestWaveFileOpen(pszFile, &WaveFile );2414 int rc = AudioTestWaveFileOpen(pszFile, &WaveFile, RTErrInfoInitStatic(&ErrInfo)); 2407 2415 if (RT_FAILURE(rc)) 2408 return RTMsgErrorExitFailure("Failed to open '%s': %Rrc ", pszFile, rc);2416 return RTMsgErrorExitFailure("Failed to open '%s': %Rrc%#RTeim", pszFile, rc, &ErrInfo.Core); 2409 2417 2410 2418 if (g_uVerbosity > 0) … … 3019 3027 3020 3028 /* 3029 * Configure release logging to go to stderr. 3030 */ 3031 static const char * const g_apszLogGroups[] = VBOX_LOGGROUP_NAMES; 3032 int rc = RTLogCreate(&g_pRelLogger, RTLOGFLAGS_PREFIX_THREAD, "all.e.l", "VKAT_RELEASE_LOG", 3033 RT_ELEMENTS(g_apszLogGroups), g_apszLogGroups, RTLOGDEST_STDERR, "vkat-release.log"); 3034 if (RT_SUCCESS(rc)) 3035 RTLogRelSetDefaultInstance(g_pRelLogger); 3036 else 3037 RTMsgWarning("Failed to create release logger: %Rrc", rc); 3038 3039 /* 3021 3040 * Process common options. 3022 3041 */ 3023 3042 RTGETOPTSTATE GetState; 3024 intrc = RTGetOptInit(&GetState, argc, argv, g_aCmdCommonOptions,3025 3043 rc = RTGetOptInit(&GetState, argc, argv, g_aCmdCommonOptions, 3044 RT_ELEMENTS(g_aCmdCommonOptions), 1 /*idxFirst*/, 0 /*fFlags - must not sort! */); 3026 3045 AssertRCReturn(rc, RTEXITCODE_INIT); 3027 3046 … … 3033 3052 case 'q': 3034 3053 g_uVerbosity = 0; 3054 if (g_pRelLogger) 3055 RTLogGroupSettings(g_pRelLogger, "all=0 all.e"); 3035 3056 break; 3036 3057 3037 3058 case 'v': 3038 3059 g_uVerbosity++; 3060 if (g_pRelLogger) 3061 RTLogGroupSettings(g_pRelLogger, g_uVerbosity == 1 ? "all.e.l" : g_uVerbosity == 2 ? "all.e.l.f" : "all=~0"); 3039 3062 break; 3040 3063
Note:
See TracChangeset
for help on using the changeset viewer.