if (tdm_log_debug_level >= TDM_LOG_LEVEL_DBG) { \
struct timespec ts; \
clock_gettime(CLOCK_MONOTONIC, &ts); \
- tdm_log_print(TDM_LOG_LEVEL_DBG, "[%5d.%06d][%d][%s %d]"fmt"\n", \
+ tdm_log_print(TDM_LOG_LEVEL_DBG, "[%5d.%06d][%d][%s %d]"fmt, \
(int)ts.tv_sec, (int)ts.tv_nsec / 1000, \
(int)syscall(SYS_gettid), __FUNCTION__, __LINE__, ##args); \
} \
if (tdm_log_debug_level >= TDM_LOG_LEVEL_INFO) { \
struct timespec ts; \
clock_gettime(CLOCK_MONOTONIC, &ts); \
- tdm_log_print(TDM_LOG_LEVEL_INFO, "[%5d.%06d][%d][%s %d]"fmt"\n", \
+ tdm_log_print(TDM_LOG_LEVEL_INFO, "[%5d.%06d][%d][%s %d]"fmt, \
(int)ts.tv_sec, (int)ts.tv_nsec / 1000, \
(int)syscall(SYS_gettid), __FUNCTION__, __LINE__, ##args); \
} \
if (tdm_log_debug_level >= TDM_LOG_LEVEL_WRN) { \
struct timespec ts; \
clock_gettime(CLOCK_MONOTONIC, &ts); \
- tdm_log_print(TDM_LOG_LEVEL_WRN, "[%5d.%06d][%d][%s %d]"fmt"\n", \
+ tdm_log_print(TDM_LOG_LEVEL_WRN, "[%5d.%06d][%d][%s %d]"fmt, \
(int)ts.tv_sec, (int)ts.tv_nsec / 1000, \
(int)syscall(SYS_gettid), __FUNCTION__, __LINE__, ##args); \
} \
if (tdm_log_debug_level >= TDM_LOG_LEVEL_ERR) { \
struct timespec ts; \
clock_gettime(CLOCK_MONOTONIC, &ts); \
- tdm_log_print(TDM_LOG_LEVEL_ERR, "[%5d.%06d][%d][%s %d]"fmt"\n", \
+ tdm_log_print(TDM_LOG_LEVEL_ERR, "[%5d.%06d][%d][%s %d]"fmt, \
(int)ts.tv_sec, (int)ts.tv_nsec / 1000, \
(int)syscall(SYS_gettid), __FUNCTION__, __LINE__, ##args); \
} \