Skip to content

Commit

Permalink
serial: add message for FORCE_PANIC
Browse files Browse the repository at this point in the history
Signed-off-by: xuxingliang <[email protected]>
  • Loading branch information
XuNeo authored and xiaoxiang781216 committed Sep 30, 2024
1 parent 58d233c commit 1ec3623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/serial/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -2102,7 +2102,7 @@ int uart_check_special(FAR uart_dev_t *dev, FAR const char *buf, size_t size)
#ifdef CONFIG_TTY_FORCE_PANIC
if (buf[i] == CONFIG_TTY_FORCE_PANIC_CHAR)
{
PANIC();
PANIC_WITH_REGS("Force panic by user.", NULL);
return 0;
}
#endif
Expand Down

0 comments on commit 1ec3623

Please sign in to comment.