Skip to content

Commit

Permalink
Update utils.h (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
hariharan-devarajan authored Jul 2, 2024
1 parent 06a0fa0 commit bda109d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dftracer/utils/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ inline void signal_handler(int sig) { // GCOVR_EXCL_START
nptrs = backtrace(buffer, STACK_SIZE);
strings = backtrace_symbols(buffer, nptrs);
if (strings != NULL) {
for (j = 0; j < nptrs; j++) printf("%s\n", strings[j]);
for (j = 0; j < nptrs; j++) {
DFTRACER_LOGERROR("%s", strings[j]);
}
free(strings);
}
exit(0);
Expand Down

0 comments on commit bda109d

Please sign in to comment.