Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <luoyifan@cmss.chinamobile.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20241111021004.272293-1-luoyifan@cmss.chinamobile.com

authored by

Luo Yifan and committed by
Andrii Nakryiko
4b153542 09048d22

+1 -1
+1 -1
tools/bpf/bpf_jit_disasm.c
··· 210 210 return NULL; 211 211 } 212 212 if (proglen > 1000000) { 213 - printf("proglen of %d too big, stopping\n", proglen); 213 + printf("proglen of %u too big, stopping\n", proglen); 214 214 return NULL; 215 215 } 216 216