From c9ac532fab6c885e2d35fc25778538caa0a5eb89 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sat, 27 Jun 2026 07:44:20 -0400 Subject: [PATCH] Remove spurious duplicate lines from the stacktrace. Only log the DETECT and FAIL points, everything else is noise. --- include/akerror.tmpl.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/akerror.tmpl.h b/include/akerror.tmpl.h index 56694c4..1373730 100644 --- a/include/akerror.tmpl.h +++ b/include/akerror.tmpl.h @@ -194,7 +194,6 @@ void akerr_init_errno(void); #define DETECT(__err_context, __stmt) \ VALID(__err_context, __stmt); \ if ( __err_context != NULL ) { \ - __err_context->stacktracebufptr += snprintf(__err_context->stacktracebufptr, AKERR_MAX_ERROR_STACKTRACE_BUF_LENGTH, "%s:%s:%d: Detected error %d from array (refcount %d)\n", (char *)__FILE__, (char *)__func__, __LINE__, __err_context->arrayid, __err_context->refcount); \ if ( __err_context->status != 0 ) { \ __err_context->stacktracebufptr += snprintf(__err_context->stacktracebufptr, AKERR_MAX_ERROR_STACKTRACE_BUF_LENGTH, "%s:%s:%d\n", (char *)__FILE__, (char *)__func__, __LINE__); \ break; \ @@ -246,7 +245,6 @@ void akerr_init_errno(void); #define FINISH_LOGIC(__err_context, __pass_up) \ if ( __err_context != NULL ) { \ if ( __err_context->handled == false && __pass_up == true ) { \ - __err_context->stacktracebufptr += snprintf(__err_context->stacktracebufptr, AKERR_MAX_ERROR_STACKTRACE_BUF_LENGTH, "%s:%s:%d\n", (char *)__FILE__, (char *)__func__, __LINE__); \ return __err_context; \ } \ } \