diff --git a/src/test/core_log_max/call_all.c.generated b/src/test/core_log_max/call_all.c.generated index 87f506378..66abd5dbf 100644 --- a/src/test/core_log_max/call_all.c.generated +++ b/src/test/core_log_max/call_all.c.generated @@ -479,6 +479,8 @@ call_all_CORE_LOG_WARNING(void) CORE_LOG_WARNING("out of memory - unable to track entries"); // src/libpmemobj/palloc.c CORE_LOG_WARNING("unable to track runtime chunk state"); + // src/libpmemobj/stats.c + CORE_LOG_WARNING("heap_curr_allocated underflowed: %lu > heap.size: %lu ; recalculating", _lu, _lu); } void diff --git a/src/test/core_log_max/core_log_max.c b/src/test/core_log_max/core_log_max.c index eb73dcf1f..feffb00ba 100644 --- a/src/test/core_log_max/core_log_max.c +++ b/src/test/core_log_max/core_log_max.c @@ -120,7 +120,7 @@ test_ERR_W_ERRNO(const struct test_case *tc, int argc, char *argv[]) return NO_ARGS_CONSUMED; } -#define TOTAL_MESSAGE_NUM_EXPECTED 214 +#define TOTAL_MESSAGE_NUM_EXPECTED 215 static int Max_message_len = 0; static int Total_message_num = 0; static char The_longest_message[BIG_BUF_SIZE]; diff --git a/utils/call_stacks_analysis/log_call_all_generate.py b/utils/call_stacks_analysis/log_call_all_generate.py index b0404da1a..f5ea81a66 100755 --- a/utils/call_stacks_analysis/log_call_all_generate.py +++ b/utils/call_stacks_analysis/log_call_all_generate.py @@ -48,7 +48,7 @@ def bad_line(reason: str, line: str) -> None: # Extract all calls from the code base def extract_append_code(file_name: str, start_line: int, code: str) -> str: - if not re.search(f'\.[ch]$', file_name): + if not re.search(r'\.[ch]$', file_name): print(f'Unsupported file type: {file_name}') exit(1) @@ -63,7 +63,7 @@ def extract_append_code(file_name: str, start_line: int, code: str) -> str: code += " " + line if code[-1] == ';': break - if re.search(f'(//|/\*)', code): + if re.search(r'(//|/\*)', code): bad_line('Comment found', code) return code @@ -276,6 +276,7 @@ def call_get_format_tokens(call): 'PRIx64': 'lx', 'PRIu64': 'lu', 'SDS_REINIT_SUFFIX': ' - reinitializing the ADR failure detection state.', + 'CURR_ALLOCATED_UNDERFLOW_FMT': 'heap_curr_allocated underflowed: %lu > heap.size: %lu ; recalculating' } def token_stringify(token: str) -> str: