From: Luo Yifan Date: Mon, 11 Nov 2024 02:10:04 +0000 (+0800) Subject: tools/bpf: Fix the wrong format specifier in bpf_jit_disasm X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4b153542013304ff6c971f8cfc85903327fcca8c;p=users%2Fwilly%2Fxarray.git tools/bpf: Fix the wrong format specifier in bpf_jit_disasm There is a static checker warning that the %d in format string is mismatched with the corresponding argument type, which could result in incorrect printed data. This patch fixes it. Signed-off-by: Luo Yifan Signed-off-by: Andrii Nakryiko Link: https://lore.kernel.org/bpf/20241111021004.272293-1-luoyifan@cmss.chinamobile.com --- diff --git a/tools/bpf/bpf_jit_disasm.c b/tools/bpf/bpf_jit_disasm.c index a90a5d110f92..1baee9e2aba9 100644 --- a/tools/bpf/bpf_jit_disasm.c +++ b/tools/bpf/bpf_jit_disasm.c @@ -210,7 +210,7 @@ static uint8_t *get_last_jit_image(char *haystack, size_t hlen, return NULL; } if (proglen > 1000000) { - printf("proglen of %d too big, stopping\n", proglen); + printf("proglen of %u too big, stopping\n", proglen); return NULL; }