vrahane commented on a change in pull request #2686:
URL: https://github.com/apache/mynewt-core/pull/2686#discussion_r714979801



##########
File path: kernel/os/src/arch/cortex_m4/os_fault.c
##########
@@ -123,6 +127,25 @@ trap_to_coredump(struct trap_frame *tf, struct 
coredump_regs *regs)
 }
 #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


Reply via email to