arch: posix: Print warning on sys_reboot
This will simplify debugging. Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
This commit is contained in:
parent
d233f0c2dd
commit
3cf7f9c974
1 changed files with 3 additions and 1 deletions
|
@ -48,6 +48,8 @@ void arch_cpu_atomic_idle(unsigned int key)
|
|||
*/
|
||||
void __weak sys_arch_reboot(int type)
|
||||
{
|
||||
ARG_UNUSED(type);
|
||||
posix_print_warning("%s called with type %d. Exiting\n",
|
||||
__func__, type);
|
||||
posix_exit(1);
|
||||
}
|
||||
#endif /* CONFIG_REBOOT */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue