VirtualBox

Ignore:
Timestamp:
May 25, 2022 2:46:53 PM (3 years ago)
Author:
vboxsync
Message:

FE/VBoxAutostart: Lots of small cleanups here and there, mostly in the logging and documentation area. Added more syntax help to make more clear how to actually use this binary. Also added support for logging verbosity levels and output those stdout (if available) [forgot to commit a file].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxAutostart/VBoxAutostart-posix.cpp

    r93115 r95105  
    6464
    6565ComPtr<IVirtualBoxClient> g_pVirtualBoxClient = NULL;
    66 bool                      g_fVerbose    = false;
    6766ComPtr<IVirtualBox>       g_pVirtualBox = NULL;
    6867ComPtr<ISession>          g_pSession    = NULL;
     
    7271static uint32_t      g_uHistoryFileTime = RT_SEC_1DAY;  /* Max 1 day per file. */
    7372static uint64_t      g_uHistoryFileSize = 100 * _1M;    /* Max 100MB per file. */
     73
     74/** Verbosity level. */
     75unsigned             g_cVerbosity = 0;
    7476
    7577/** Run in background. */
     
    240242{
    241243    if (   enmLogType == AUTOSTARTLOGTYPE_VERBOSE
    242         && !g_fVerbose)
     244        && !g_cVerbosity)
    243245        return;
    244246
     
    359361
    360362            case 'v':
    361                 g_fVerbose = true;
     363                g_cVerbosity++;
    362364                break;
    363365
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