VirtualBox

Changeset 25352 in vbox


Ignore:
Timestamp:
Dec 14, 2009 10:06:49 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55950
Message:

NAT: no logging code if logging is disabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/ext.h

    r23154 r25352  
    6262static void vbox_slirp_printV(char *format, va_list args)
    6363{
     64# ifdef LOG_ENABLED
    6465    char buffer[1024];
    6566    memset(buffer, 0, 1024);
     
    6768
    6869    Log2(("NAT:EXT: %s\n", buffer));
     70# endif
    6971}
    7072#endif
     
    7375static void vbox_slirp_printf(char *format, ...)
    7476{
     77# ifdef LOG_ENABLED
    7578    va_list args;
    7679    va_start(args, format);
    7780    vbox_slirp_printV(format, args);
    7881    va_end(args);
     82# endif
    7983}
    8084#endif
     
    8387static void vbox_slirp_fprintf(void *ignored, char *format, ...)
    8488{
     89# ifdef LOG_ENABLED
    8590    va_list args;
    8691    va_start(args, format);
    8792    vbox_slirp_printV(format, args);
    8893    va_end(args);
     94# endif
    8995}
    9096#endif
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