Skip to content

Commit

Permalink
Fix code scanning alert #922: Wrong type of arguments to formatting f…
Browse files Browse the repository at this point in the history
…unction

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
1 parent dea08d4 commit 36438bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gdb/tracepoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ collect_symbol(struct collection_list *collect,
offset = (frame_offset + SYMBOL_VALUE(sym));
if (info_verbose)
{
printf_filtered("LOC_LOCAL %s: Collect %ld bytes at offset ",
printf_filtered("LOC_LOCAL %s: Collect %lu bytes at offset ",

Check warning

Code scanning / CodeQL

Too few arguments to formatting function Medium

Format for printf_filtered expects 2 arguments but given 1
DEPRECATED_SYMBOL_NAME(sym), len);
printf_vma(offset);
printf_filtered(" from frame ptr reg %d\n", reg);
Expand Down

0 comments on commit 36438bd

Please sign in to comment.