#include "board.h" #include "log.h" #include #include "app.h" static char info[512]; void ologShow(char level, char fa, char * fmt, ...){ va_list va; char buf[10]; int n; if(sutApp.gtMode!=0)return; va_start(va, fmt); n=vsnprintf(info, sizeof(info), fmt, va); va_end(va); //输出 memset(buf,0,sizeof(buf)); switch(level){ case LINFO:strcpy(buf, "[AP_INFO]");break; case LWARN:strcpy(buf, "[AP_WARN]");break; case LERR:strcpy(buf, "[AP_ERR]");break; default:break; } usbOutPut(buf,strlen(buf)); usbOutPut(info, n); if(fa) usbOutPut("\r\n", 2); }