fix: 回退los_panic相关修改
方案描述: 1, 暂时回退https://gitee.com/openharmony/kernel_liteos_m/pulls/1035的修改 fix #I6V3U5 Signed-off-by: wangchen <wangchen240@huawei.com>
This commit is contained in:
parent
556c10121b
commit
6d2dbdf0e8
|
@ -37,7 +37,6 @@
|
||||||
#include "los_mux.h"
|
#include "los_mux.h"
|
||||||
#include "los_queue.h"
|
#include "los_queue.h"
|
||||||
#include "los_sem.h"
|
#include "los_sem.h"
|
||||||
#include "securec.h"
|
|
||||||
|
|
||||||
#if (LOSCFG_PLATFORM_HWI == 1)
|
#if (LOSCFG_PLATFORM_HWI == 1)
|
||||||
#include "los_interrupt.h"
|
#include "los_interrupt.h"
|
||||||
|
@ -96,8 +95,6 @@
|
||||||
#include "los_trace_pri.h"
|
#include "los_trace_pri.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BUFSIZE 256
|
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
Function : LOS_Reboot
|
Function : LOS_Reboot
|
||||||
Description : system exception, die in here, wait for watchdog.
|
Description : system exception, die in here, wait for watchdog.
|
||||||
|
@ -113,14 +110,10 @@ LITE_OS_SEC_TEXT_INIT VOID LOS_Reboot(VOID)
|
||||||
|
|
||||||
LITE_OS_SEC_TEXT_INIT VOID LOS_Panic(const CHAR *fmt, ...)
|
LITE_OS_SEC_TEXT_INIT VOID LOS_Panic(const CHAR *fmt, ...)
|
||||||
{
|
{
|
||||||
char buf[BUFSIZE] = { 0 };
|
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
int len = vsnprintf_s(buf, sizeof(buf), BUFSIZE - 1, fmt, ap);
|
PRINT_ERR(fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
if (len > 0) {
|
|
||||||
PRINT_ERR("%s\n", buf);
|
|
||||||
}
|
|
||||||
OsDoExcHook(EXC_PANIC);
|
OsDoExcHook(EXC_PANIC);
|
||||||
#if (LOSCFG_BACKTRACE_TYPE != 0)
|
#if (LOSCFG_BACKTRACE_TYPE != 0)
|
||||||
LOS_BackTrace();
|
LOS_BackTrace();
|
||||||
|
|
Loading…
Reference in New Issue