30 extern int _printf(
char* format,...);
35 #define LOG_DEBUG(fmt,...) printf(fmt,##__VA_ARGS__) 37 #define LOG_DEBUG(fmt,...) _printf(fmt,##__VA_ARGS__) 42 #define CI_LOG(debug, comlevel, message, args...) \ 44 if((debug)<=(comlevel)) { \ 45 if((debug) & (CI_LOG_ASSERT))LOG_DEBUG("\033[35m"message"\033[0m", ## args); \ 46 if((debug) & (CI_LOG_ERROR))LOG_DEBUG("\033[31m"message"\033[0m", ## args); \ 47 if((debug) & (CI_LOG_WARN))LOG_DEBUG("\033[33m"message"\033[0m", ## args); \ 48 if((debug) & (CI_LOG_INFO))LOG_DEBUG(message, ## args); \ 49 if((debug) & (CI_LOG_DEBUG))LOG_DEBUG("\033[36m"message"\033[0m", ## args); \ 50 if((debug) & (CI_LOG_VERBOSE))LOG_DEBUG("\033[32m"message"\033[0m", ## args); \ 54 #define CI_LOG(debug, message, args...) do{}while(0) 58 #if CONFIG_SMT_PRINTF_EN 60 #define _mprintf(fmt,...) printf(fmt,##__VA_ARGS__) 62 #define _mprintf(fmt,...) _printf(fmt,##__VA_ARGS__) 65 #define _mprintf(fmt,...) do{}while(0) 76 #define ci_logverbose(comlevel, message, args...) CI_LOG(CI_LOG_VERBOSE, comlevel, message, ## args) 78 #define ci_logdebug(comlevel, message, args...) CI_LOG(CI_LOG_DEBUG, comlevel, message, ## args) 80 #define ci_loginfo(comlevel, message, args...) CI_LOG(CI_LOG_INFO, comlevel, message, ## args) 82 #define ci_logwarn(comlevel, message, args...) CI_LOG(CI_LOG_WARN, comlevel, message, ## args) 84 #define ci_logerr(comlevel, message, args...) CI_LOG(CI_LOG_ERROR, comlevel, message, ## args) 86 #define ci_logassert(comlevel, message, args...) CI_LOG(CI_LOG_ASSERT, comlevel, message, ## args) 89 #define mprintf(fmt, args...) _mprintf(fmt, ## args) int _printf(char *format,...)
Definition: ci_log.c:258
void uart_log_int_mode_init(void)
void uart_log_int_handler(void)
void ci_log_init(void)
Definition: ci_log.c:23