Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/test/core_log_max/call_all.c.generated
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/test/core_log_max/core_log_max.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
5 changes: 3 additions & 2 deletions utils/call_stacks_analysis/log_call_all_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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

Expand Down Expand Up @@ -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:
Expand Down
Loading