vrahane commented on a change in pull request #2686: URL: https://github.com/apache/mynewt-core/pull/2686#discussion_r714980416
########## File path: kernel/os/src/arch/cortex_m33/os_fault.c ########## @@ -124,6 +128,25 @@ struct mtb_state { } mtb_state_at_crash; #endif +#if MYNEWT_VAL(OS_COREDUMP_CB) +void +os_coredump_cb(void *tf) +{ + if(g_coredump_cb) { + g_coredump_cb(tf); + } +} + +void +os_register_coredump_cb(coredump_cb_t coredump_cb) +{ + /* Register callback function */ + if(!g_coredump_cb) { Review comment: Need a space between if and ( -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@mynewt.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org