VirtualBox

Changeset 51573 in vbox for trunk/src


Ignore:
Timestamp:
Jun 8, 2014 12:35:50 AM (10 years ago)
Author:
vboxsync
Message:

NAT/Net: Use logger for DPRINTFs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/proxy.h

    r49860 r51573  
    8787
    8888#define LWIP_ASSERT1(condition) LWIP_ASSERT(#condition, condition)
    89 /* TODO: review debug levels and types */
    90 #if !LWIP_PROXY_DEBUG
    91 # define DPRINTF_LEVEL(y, x)      do {} while (0)
    92 #else
    93 # define DPRINTF_LEVEL(level, x) do { LWIP_DEBUGF(LWIP_PROXY_DEBUG | (level), x); } while (0)
    94 #endif
    9589
    96 #define DPRINTF(x) DPRINTF_LEVEL(0, x)
    97 #define DPRINTF0(x) DPRINTF_LEVEL(LWIP_DBG_LEVEL_WARNING, x)
    98 #define DPRINTF1(x) DPRINTF_LEVEL(LWIP_DBG_LEVEL_SERIOUS, x)
    99 #define DPRINTF2(x) DPRINTF_LEVEL(LWIP_DBG_LEVEL_SEVERE, x)
     90/*
     91 * TODO: DPRINTF0 should probably become LogRel but its usage needs to
     92 * be cleaned up a bit before.
     93 */
     94#define DPRINTF0(a) Log(a)
     95
     96#define DPRINTF(a)  DPRINTF1(a)
     97#define DPRINTF1(a) Log2(a)
     98#define DPRINTF2(a) Log3(a)
    10099
    101100#endif /* _nat_proxy_h_ */
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