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:
Rubin Gerritsen 2020-05-26 22:10:45 +02:00 committed by Alberto Escolar
commit 3cf7f9c974

View file

@ -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 */