From 02a74210bda672d9429fc49d3ab8802c4b3d44bc Mon Sep 17 00:00:00 2001 From: Hariharan Devarajan Date: Tue, 2 Jul 2024 16:41:18 -0700 Subject: [PATCH] Update utils.h --- src/dftracer/utils/utils.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dftracer/utils/utils.h b/src/dftracer/utils/utils.h index 2945183d..6b721fab 100644 --- a/src/dftracer/utils/utils.h +++ b/src/dftracer/utils/utils.h @@ -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);