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; \ } \ } \