Skip to content

Commit

Permalink
Fix code scanning alert #923: 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 a17b559 commit 573e41d
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 @@ -1299,7 +1299,7 @@ collect_symbol(struct collection_list *collect,
offset = SYMBOL_VALUE (sym);
if (info_verbose)
{
printf_filtered ("LOC_BASEREG %s: collect %ld bytes at offset ",
printf_filtered ("LOC_BASEREG %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 basereg %d\n", reg);
Expand Down

0 comments on commit 573e41d

Please sign in to comment.