diff --git a/arch/arm/arm/src/los_exc.c b/arch/arm/arm/src/los_exc.c index ed575a85..cd85dbb6 100644 --- a/arch/arm/arm/src/los_exc.c +++ b/arch/arm/arm/src/los_exc.c @@ -1237,10 +1237,10 @@ __attribute__((noinline)) VOID LOS_Panic(const CHAR *fmt, ...) { va_list ap; va_start(ap, fmt); - UartVprintf(fmt, ap); + OsVprintf(fmt, ap, EXC_OUTPUT); va_end(ap); __asm__ __volatile__("swi 0"); - while (1); + while (1) {} } /* stack protector */ diff --git a/kernel/common/los_magickey.c b/kernel/common/los_magickey.c index 1c9cca76..fba1c059 100644 --- a/kernel/common/los_magickey.c +++ b/kernel/common/los_magickey.c @@ -112,7 +112,7 @@ STATIC VOID OsMagicPanic(VOID) STATIC VOID OsMagicMemCheck(VOID) { if (LOS_MemIntegrityCheck(m_aucSysMem1) == LOS_OK) { - PRINTK("system memcheck over, all passed!\n"); + PrintExcInfo("system memcheck over, all passed!\n"); } return; } @@ -130,9 +130,9 @@ INT32 CheckMagicKey(CHAR key, UINT16 consoleId) } else if (key == 0x12) { /* ctrl + r */ magicKeySwitch = ~magicKeySwitch; if (magicKeySwitch != 0) { - PRINTK("Magic key on\n"); + PrintExcInfo("Magic key on\n"); } else { - PRINTK("Magic key off\n"); + PrintExcInfo("Magic key off\n"); } return 1; }