From a8f1f23aa3cb2ae765544e3db8809eb2475a047e Mon Sep 17 00:00:00 2001 From: Elliot <35050275+apache-hb@users.noreply.github.com> Date: Fri, 13 Sep 2024 10:58:41 -0400 Subject: [PATCH] Update backtrace.c --- src/support/format/src/backtrace.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/support/format/src/backtrace.c b/src/support/format/src/backtrace.c index 908252be..70446c75 100644 --- a/src/support/format/src/backtrace.c +++ b/src/support/format/src/backtrace.c @@ -242,7 +242,7 @@ static typevec_t *collapse_frames(const typevec_t *frames, arena_t *arena) // get the longest symbol in a sequence of entries static size_t get_longest_symbol(const typevec_t *frames, collapsed_t range) { - CTASSERTF(is_collapsed_range(range), "range is not a single frame"); + CTASSERTF(IS_COLLAPSED_RANGE(range), "range is not a single frame"); size_t largest = 0; for (size_t i = range.first; i <= range.last; i++) @@ -278,7 +278,7 @@ static symbol_match_info_t get_largest_collapsed_symbol(const typevec_t *frames, const collapsed_t *range = entries + i; CTASSERTF(range != NULL, "entry at %zu is NULL", i); - if (is_collapsed_range(*range)) + if (IS_COLLAPSED_RANGE(*range)) { symbol_match_info_t info = { .largest_symbol = largest, @@ -411,7 +411,7 @@ static void print_frame_sequence(backtrace_t *pass, size_t index, collapsed_t co static void print_collapsed(backtrace_t *pass, size_t index, collapsed_t collapsed) { - if (is_collapsed_range(collapsed)) + if (IS_COLLAPSED_RANGE(collapsed)) { print_frame_sequence(pass, index, collapsed); }