• Home
  • Raw
  • Download

Lines Matching full:level

66 VOID OsLkDefaultFunc(INT32 level, const CHAR *func, INT32 line, const CHAR *fmt, va_list ap);
80 VOID OsLkTraceLvSet(INT32 level) in OsLkTraceLvSet() argument
82 g_tracelevel = level; in OsLkTraceLvSet()
83 g_logger.trace_level = level; in OsLkTraceLvSet()
87 VOID OsLkModuleLvSet(INT32 level) in OsLkModuleLvSet() argument
89 g_modulelevel = level; in OsLkModuleLvSet()
90 g_logger.module_level = level; in OsLkModuleLvSet()
126 size_t level; in CmdLog() local
131 PRINTK("Usage: log level <num>\n"); in CmdLog()
137 if (!strncmp(argv[0], "level", strlen(argv[0]) + 1)) { in CmdLog()
138 level = strtoul(argv[1], &p, 0); in CmdLog()
139 if ((*p != 0) || (level > LOS_TRACE_LEVEL) || (level < LOS_EMG_LEVEL)) { in CmdLog()
140 PRINTK("current log level %s\n", OsLkCurLogLvGet()); in CmdLog()
143 OsLkTraceLvSet(level); in CmdLog()
144 PRINTK("Set current log level %s\n", OsLkCurLogLvGet()); in CmdLog()
160 PRINTK("Usage: log level <num>\n"); in CmdLog()
170 STATIC INLINE VOID OsLogCycleRecord(INT32 level) in OsLogCycleRecord() argument
173 if (level != LOS_COMMON_LEVEL && (level > LOS_EMG_LEVEL && level <= LOS_TRACE_LEVEL)) { in OsLogCycleRecord()
174 tmpLen = strlen(OsLogLvGet(level)); in OsLogCycleRecord()
175 const CHAR* tmpPtr = OsLogLvGet(level); in OsLogCycleRecord()
181 VOID OsLkDefaultFunc(INT32 level, const CHAR *func, INT32 line, const CHAR *fmt, va_list ap) in OsLkDefaultFunc() argument
183 if (level > OsLkTraceLvGet()) { in OsLkDefaultFunc()
185 if ((UINT32)level <= OsDmesgLvGet()) { in OsLkDefaultFunc()
186 OsLogCycleRecord(level); in OsLkDefaultFunc()
192 if ((level != LOS_COMMON_LEVEL) && ((level > LOS_EMG_LEVEL) && (level <= LOS_TRACE_LEVEL))) { in OsLkDefaultFunc()
193 dprintf("[%s][%s:%s]", OsLogLvGet(level), in OsLkDefaultFunc()
200 VOID LOS_LkPrint(INT32 level, const CHAR *func, INT32 line, const CHAR *fmt, ...) in LOS_LkPrint() argument
205 g_osLkHook(level, func, line, fmt, ap); in LOS_LkPrint()