VirtualBox

Changeset 3242

Show
Ignore:
Timestamp:
06/23/07 03:21:45 (2 years ago)
Author:
vboxsync
Message:

LogRelBackdoor? and map LogRel? to it when LOG_TO_BACKDOOR is defined.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/iprt/log.h

    r3223 r3242  
    673673 
    674674 
    675 /** @name COM port logging 
    676  * { 
    677  */ 
    678  
    679 #ifdef __DOXYGEN__ 
    680 # define LOG_TO_COM 
    681 # define LOG_NO_COM 
    682 #endif 
    683  
    684 /** @def LOG_TO_COM 
    685  * Redirects the normal loging macros to the serial versions. 
    686  */ 
    687  
    688 /** @def LOG_NO_COM 
    689  * Disables all LogCom* macros. 
    690  */ 
    691  
    692 /** @def LogCom 
    693  * Generic logging to serial port. 
    694  */ 
    695 #if defined(LOG_ENABLED) && !defined(LOG_NO_COM) 
    696 # define LogCom(a) RTLogComPrintf a 
    697 #else 
    698 # define LogCom(a) do { } while (0) 
    699 #endif 
    700  
    701 /** @def LogComFlow 
    702  * Logging to serial port of execution flow. 
    703  */ 
    704 #if defined(LOG_ENABLED) && defined(LOG_ENABLE_FLOW) && !defined(LOG_NO_COM) 
    705 # define LogComFlow(a) RTLogComPrintf a 
    706 #else 
    707 # define LogComFlow(a) do { } while (0) 
    708 #endif 
    709  
    710 #ifdef LOG_TO_COM 
    711 # undef Log 
    712 # define Log(a)      LogCom(a) 
    713 # undef LogFlow 
    714 # define LogFlow(a)  LogComFlow(a) 
    715 #endif 
    716  
    717 /** @} */ 
    718  
    719  
    720 /** @name Backdoor Logging 
    721  * @{ 
    722  */ 
    723  
    724 #ifdef __DOXYGEN__ 
    725 # define LOG_TO_BACKDOOR 
    726 # define LOG_NO_BACKDOOR 
    727 #endif 
    728  
    729 /** @def LOG_TO_BACKDOOR 
    730  * Redirects the normal logging macros to the backdoor versions. 
    731  */ 
    732  
    733 /** @def LOG_NO_BACKDOOR 
    734  * Disables all LogBackdoor* macros. 
    735  */ 
    736  
    737 /** @def LogBackdoor 
    738  * Generic logging to the VBox backdoor via port io. 
    739  */ 
    740 #if defined(LOG_ENABLED) && !defined(LOG_NO_BACKDOOR) 
    741 # define LogBackdoor(a) RTLogBackdoorPrintf a 
    742 #else 
    743 # define LogBackdoor(a) do { } while (0) 
    744 #endif 
    745  
    746 /** @def LogBackdoorFlow 
    747  * Logging of execution flow messages to the backdoor io port. 
    748  */ 
    749 #if defined(LOG_ENABLED) && !defined(LOG_NO_BACKDOOR) 
    750 # define LogBackdoorFlow(a) RTLogBackdoorPrintf a 
    751 #else 
    752 # define LogBackdoorFlow(a) do { } while (0) 
    753 #endif 
    754  
    755 #ifdef LOG_TO_BACKDOOR 
    756 # undef Log 
    757 # define Log(a)      LogBackdoor(a) 
    758 # undef LogFlow 
    759 # define LogFlow(a)  LogBackdoorFlow(a) 
    760 #endif 
    761  
    762 /** @} */ 
    763  
    764  
    765675/** @name Release Logging 
    766676 * @{ 
     
    1011921RTDECL(void) RTLogRelPrintfV(const char *pszFormat, va_list args); 
    1012922 
     923 
    1013924/** @} */ 
     925 
     926 
     927 
     928/** @name COM port logging 
     929 * { 
     930 */ 
     931 
     932#ifdef __DOXYGEN__ 
     933# define LOG_TO_COM 
     934# define LOG_NO_COM 
     935#endif 
     936 
     937/** @def LOG_TO_COM 
     938 * Redirects the normal loging macros to the serial versions. 
     939 */ 
     940 
     941/** @def LOG_NO_COM 
     942 * Disables all LogCom* macros. 
     943 */ 
     944 
     945/** @def LogCom 
     946 * Generic logging to serial port. 
     947 */ 
     948#if defined(LOG_ENABLED) && !defined(LOG_NO_COM) 
     949# define LogCom(a) RTLogComPrintf a 
     950#else 
     951# define LogCom(a) do { } while (0) 
     952#endif 
     953 
     954/** @def LogComFlow 
     955 * Logging to serial port of execution flow. 
     956 */ 
     957#if defined(LOG_ENABLED) && defined(LOG_ENABLE_FLOW) && !defined(LOG_NO_COM) 
     958# define LogComFlow(a) RTLogComPrintf a 
     959#else 
     960# define LogComFlow(a) do { } while (0) 
     961#endif 
     962 
     963#ifdef LOG_TO_COM 
     964# undef Log 
     965# define Log(a)             LogCom(a) 
     966# undef LogFlow 
     967# define LogFlow(a)         LogComFlow(a) 
     968#endif 
     969 
     970/** @} */ 
     971 
     972 
     973/** @name Backdoor Logging 
     974 * @{ 
     975 */ 
     976 
     977#ifdef __DOXYGEN__ 
     978# define LOG_TO_BACKDOOR 
     979# define LOG_NO_BACKDOOR 
     980#endif 
     981 
     982/** @def LOG_TO_BACKDOOR 
     983 * Redirects the normal logging macros to the backdoor versions. 
     984 */ 
     985 
     986/** @def LOG_NO_BACKDOOR 
     987 * Disables all LogBackdoor* macros. 
     988 */ 
     989 
     990/** @def LogBackdoor 
     991 * Generic logging to the VBox backdoor via port I/O. 
     992 */ 
     993#if defined(LOG_ENABLED) && !defined(LOG_NO_BACKDOOR) 
     994# define LogBackdoor(a)     RTLogBackdoorPrintf a 
     995#else 
     996# define LogBackdoor(a)     do { } while (0) 
     997#endif 
     998 
     999/** @def LogBackdoorFlow 
     1000 * Logging of execution flow messages to the backdoor I/O port. 
     1001 */ 
     1002#if defined(LOG_ENABLED) && !defined(LOG_NO_BACKDOOR) 
     1003# define LogBackdoorFlow(a) RTLogBackdoorPrintf a 
     1004#else 
     1005# define LogBackdoorFlow(a) do { } while (0) 
     1006#endif 
     1007 
     1008/** @def LogRelBackdoor 
     1009 * Generic logging to the VBox backdoor via port I/O. 
     1010 */ 
     1011#if !defined(LOG_NO_BACKDOOR) 
     1012# define LogRelBackdoor(a)  RTLogBackdoorPrintf a 
     1013#else 
     1014# define LogRelBackdoor(a)  do { } while (0) 
     1015#endif 
     1016 
     1017#ifdef LOG_TO_BACKDOOR 
     1018# undef Log 
     1019# define Log(a)         LogBackdoor(a) 
     1020# undef LogFlow 
     1021# define LogFlow(a)     LogBackdoorFlow(a) 
     1022# undef LogRel 
     1023# define LogRel(a)      LogRelBackdoor(a) 
     1024# undef LogRelFlow 
     1025# define LogRelFlow(a)  LogRelBackdoorFlow(a) 
     1026#endif 
     1027 
     1028/** @} */ 
     1029 
     1030 
    10141031 
    10151032 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy