From: Arun Thomas Date: Mon, 19 Sep 2011 15:28:03 +0000 (+0200) Subject: sef: build sef_debug_header only when needed X-Git-Tag: v3.2.0~299 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/mult.png?a=commitdiff_plain;h=05341dfeb0657976bd114c1ae14fb7e5f21abf21;p=minix.git sef: build sef_debug_header only when needed --- diff --git a/lib/libsys/sef.c b/lib/libsys/sef.c index cbe31344b..0afeea2fe 100644 --- a/lib/libsys/sef.c +++ b/lib/libsys/sef.c @@ -14,6 +14,7 @@ PUBLIC int sef_self_priv_flags; PUBLIC int sef_self_first_receive_done; /* Debug. */ +#if SEF_INIT_DEBUG || SEF_LU_DEBUG || SEF_PING_DEBUG || SEF_SIGNAL_DEBUG #define SEF_DEBUG_HEADER_MAXLEN 32 PRIVATE time_t sef_debug_boottime = 0; PRIVATE u32_t sef_debug_system_hz = 0; @@ -22,6 +23,7 @@ PRIVATE time_t sef_debug_time_us = 0; PRIVATE char sef_debug_header_buff[SEF_DEBUG_HEADER_MAXLEN]; FORWARD _PROTOTYPE( void sef_debug_refresh_params, (void) ); PUBLIC _PROTOTYPE( char* sef_debug_header, (void) ); +#endif /* SEF Init prototypes. */ #ifdef USE_COVERAGE @@ -220,6 +222,7 @@ PUBLIC void __exit(int status) panic("sef_exit failed"); } +#if SEF_INIT_DEBUG || SEF_LU_DEBUG || SEF_PING_DEBUG || SEF_SIGNAL_DEBUG /*===========================================================================* * sef_debug_refresh_params * *===========================================================================*/ @@ -280,4 +283,5 @@ PUBLIC char* sef_debug_header(void) return sef_debug_header_buff; } +#endif /*SEF_INIT_DEBUG || SEF_LU_DEBUG || SEF_PING_DEBUG || SEF_SIGNAL_DEBUG*/