Skip to content

Commit 4b15354

Browse files
Luo Yifananakryiko
authored andcommitted
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 <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 09048d2 commit 4b15354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/bpf/bpf_jit_disasm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ static uint8_t *get_last_jit_image(char *haystack, size_t hlen,
210210
return NULL;
211211
}
212212
if (proglen > 1000000) {
213-
printf("proglen of %d too big, stopping\n", proglen);
213+
printf("proglen of %u too big, stopping\n", proglen);
214214
return NULL;
215215
}
216216

0 commit comments

Comments
 (0)