From 573e41d696bc79ded880aa88637b6c4dc9728a5a Mon Sep 17 00:00:00 2001 From: Eric Gallager Date: Thu, 19 Sep 2024 14:32:24 -0400 Subject: [PATCH] Fix code scanning alert #923: Wrong type of arguments to formatting function Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- src/gdb/tracepoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gdb/tracepoint.c b/src/gdb/tracepoint.c index 289efe51b..977a90430 100644 --- a/src/gdb/tracepoint.c +++ b/src/gdb/tracepoint.c @@ -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 ", DEPRECATED_SYMBOL_NAME (sym), len); printf_vma (offset); printf_filtered (" from basereg %d\n", reg);