Skip to content

Commit

Permalink
helper: debug: use abort function returned by odp_abort_fn_get()
Browse files Browse the repository at this point in the history
Use the abort function returned by odp_abort_fn_get().

Signed-off-by: Jere Leppänen <[email protected]>
  • Loading branch information
JereLeppanen committed Dec 3, 2024
1 parent 217c992 commit 22d270f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions helper/include/odp/helper/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,13 @@ do { \
##__VA_ARGS__); \
} \
} \
if (level == ODPH_LOG_ABORT) \
abort(); \
if (level == ODPH_LOG_ABORT) { \
odp_abort_func_t fn = odp_abort_fn_get(); \
if (fn) \
fn(); \
else \
abort(); \
} \
} while (0)

/**
Expand Down

0 comments on commit 22d270f

Please sign in to comment.