Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/tws/tws_services.h
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | |||||
#define TWS_TRACE_ON on /* Alawys on - use wisely to trace errors */ | #define TWS_TRACE_ON on /* Alawys on - use wisely to trace errors */ | ||||
#ifdef TWS_DEBUG | #ifdef TWS_DEBUG | ||||
#define TWS_TRACE_DEBUG_ON on | #define TWS_TRACE_DEBUG_ON on | ||||
#endif | #endif | ||||
#ifdef TWS_TRACE_DEBUG_ON | #ifdef TWS_TRACE_DEBUG_ON | ||||
#define __tws_debug | |||||
#define TWS_TRACE_DEBUG(sc, desc, val1, val2) \ | #define TWS_TRACE_DEBUG(sc, desc, val1, val2) \ | ||||
tws_trace(__FILE__, __func__, __LINE__, sc, desc, \ | tws_trace(__FILE__, __func__, __LINE__, sc, desc, \ | ||||
(u_int64_t)val1, (u_int64_t)val2) | (u_int64_t)val1, (u_int64_t)val2) | ||||
#else | #else | ||||
#define __tws_debug __unused | |||||
#define TWS_TRACE_DEBUG(sc, desc, val1, val2) | #define TWS_TRACE_DEBUG(sc, desc, val1, val2) | ||||
#endif | #endif | ||||
#ifdef TWS_TRACE_ON | #ifdef TWS_TRACE_ON | ||||
#define TWS_TRACE(sc, desc, val1, val2) \ | #define TWS_TRACE(sc, desc, val1, val2) \ | ||||
tws_trace(__FILE__, __func__, __LINE__, sc, desc, \ | tws_trace(__FILE__, __func__, __LINE__, sc, desc, \ | ||||
(u_int64_t)val1, (u_int64_t)val2) | (u_int64_t)val1, (u_int64_t)val2) | ||||
#else | #else | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |