更新日期: 2022/06/01 来源: https://gitee.com/weharmony/kernel_liteos_a_note
los_base.h 文件参考

浏览源代码.

函数

VOID PrintExcInfo (const CHAR *fmt,...)
 打印异常信息 更多...
 
UINTPTR LOS_Align (UINTPTR addr, UINT32 boundary)
 Align the value (addr) by some bytes (boundary) you specify. 更多...
 
VOID LOS_Msleep (UINT32 msecs)
 Sleep the current task. 更多...
 

函数说明

◆ PrintExcInfo()

VOID PrintExcInfo ( const CHAR fmt,
  ... 
)

打印异常信息

在文件 los_printf.c263 行定义.

264{
265 va_list ap;
266 va_start(ap, fmt);
267 /* uart output without print-spinlock */
268 OsVprintf(fmt, ap, EXC_OUTPUT);//异常信息打印主体函数
269#ifdef LOSCFG_SAVE_EXCINFO
270 WriteExcBufVa(fmt, ap);
271#endif
272 va_end(ap);
273}
VOID WriteExcBufVa(const CHAR *format, va_list arglist)
vsnprintf 为C标准库可变参数的实现函数 见于 ..\third_party\musl\kernel\src\stdio\vsnprintf.c
Definition: los_excinfo.c:99
VOID OsVprintf(const CHAR *fmt, va_list ap, OutputType type)
printf由 print 和 format 两个单词构成,格式化输出函数, 一般用于向标准输出设备按规定格式输出信息
Definition: los_printf.c:138
@ EXC_OUTPUT
Definition: los_printf.h:108