VirtualBox

Changeset 68545 in vbox for trunk


Ignore:
Timestamp:
Aug 30, 2017 6:35:02 PM (7 years ago)
Author:
vboxsync
Message:

NAT/Net: Provide immediate feedback if corresponding LogRel level is
enabled. It's frustrating when you chase some rare event and discover
you didn't actually have the corresponding log level enabled because
of a typo in the environment variable name or its content.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/VBoxNetLwipNAT.cpp

    r65809 r68545  
    13371337                               0 /* uHistoryFileSize */,
    13381338                               szError, sizeof(szError));
     1339
     1340    /*
     1341     * Provide immediate feedback if corresponding LogRel level is
     1342     * enabled.  It's frustrating when you chase some rare event and
     1343     * discover you didn't actually have the corresponding log level
     1344     * enabled because of a typo in the environment variable name or
     1345     * its content.
     1346     */
     1347#define LOG_PING(_log) _log((#_log " enabled\n"))
     1348    LOG_PING(LogRel2);
     1349    LOG_PING(LogRel3);
     1350    LOG_PING(LogRel4);
     1351    LOG_PING(LogRel5);
     1352    LOG_PING(LogRel6);
     1353    LOG_PING(LogRel7);
     1354    LOG_PING(LogRel8);
     1355    LOG_PING(LogRel9);
     1356    LOG_PING(LogRel10);
     1357    LOG_PING(LogRel11);
     1358    LOG_PING(LogRel12);
     1359
    13391360    return rc;
    13401361}
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