Chirp SonicLib  4.5.2
Macros | Functions
ch_log.h File Reference

Functions to handle log level in Soniclib driver. More...

Go to the source code of this file.

Macros

#define CH_LOG_APP(...)   ch_log_printf_eol(__VA_ARGS__)
 
#define CH_LOG_APP_END()   ch_log_end()
 
#define CH_LOG_APP_MSG(...)   ch_log_msg(__VA_ARGS__)
 
#define CH_LOG_APP_START(...)   ch_log_start(__VA_ARGS__)
 
#define CH_LOG_BUFFER_SIZE   (200)
 
#define CH_LOG_DEBUG(...)
 
#define CH_LOG_DEBUG_END()
 
#define CH_LOG_DEBUG_MSG(...)
 
#define CH_LOG_DEBUG_START(...)
 
#define CH_LOG_ERR(...)   ch_log_prefix_printf('E', CH_LOG_MODULE_NAME, __func__, __VA_ARGS__)
 
#define CH_LOG_ERR_END()   ch_log_end()
 
#define CH_LOG_ERR_MSG(...)   ch_log_msg(__VA_ARGS__)
 
#define CH_LOG_ERR_START(...)   ch_log_prefix_start('E', CH_LOG_MODULE_NAME, __func__, __VA_ARGS__)
 
#define CH_LOG_INFO(...)
 
#define CH_LOG_INFO_END()
 
#define CH_LOG_INFO_MSG(...)
 
#define CH_LOG_INFO_START(...)
 
#define CH_LOG_LEVEL_APP   5
 
#define CH_LOG_LEVEL_DEBUG   1
 
#define CH_LOG_LEVEL_DISABLE   6
 
#define CH_LOG_LEVEL_ERROR   4
 
#define CH_LOG_LEVEL_INFO   2
 
#define CH_LOG_LEVEL_TRACE   0
 
#define CH_LOG_LEVEL_WARNING   3
 
#define CH_LOG_MODULE_LEVEL   CH_LOG_LEVEL_ERROR
 
#define CH_LOG_TRACE(...)
 
#define CH_LOG_TRACE_END()
 
#define CH_LOG_TRACE_MSG(...)
 
#define CH_LOG_TRACE_START(...)
 
#define CH_LOG_WARN(...)
 
#define CH_LOG_WARN_END()
 
#define CH_LOG_WARN_MSG(...)
 
#define CH_LOG_WARN_START(...)
 
#define IS_CH_LOG_LEVEL_USED(level)   (level >= CH_LOG_MODULE_LEVEL)
 
#define IS_CH_LOG_USED   (CH_LOG_MODULE_LEVEL < CH_LOG_LEVEL_DISABLE)
 

Functions

void ch_log_end (void)
 
void ch_log_msg (const char *format,...)
 
void ch_log_prefix_printf (const char level, const char *name, const char *func_name, const char *format,...)
 
void ch_log_prefix_start (const char level, const char *name, const char *func_name, const char *format,...)
 
void ch_log_printf (const char *format,...)
 
void ch_log_printf_eol (const char *format,...)
 
void ch_log_start (const char *format,...)
 

Detailed Description

Functions to handle log level in Soniclib driver.

You should not need to edit this file. Doing so will reduce your ability to benefit from future enhancements and releases from Chirp.