Skip to content

Commit 25703ad

Browse files
ShenChen1borkmann
authored andcommitted
libbpf: Correct debug message in btf__load_vmlinux_btf
In the function btf__load_vmlinux_btf, the debug message incorrectly refers to 'path' instead of 'sysfs_btf_path'. Signed-off-by: Chen Shen <peterchenshen@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Yonghong Song <yonghong.song@linux.dev> Link: https://lore.kernel.org/bpf/20240302062218.3587-1-peterchenshen@gmail.com
1 parent 0ef05e2 commit 25703ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/lib/bpf/btf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4968,7 +4968,7 @@ struct btf *btf__load_vmlinux_btf(void)
49684968
pr_warn("failed to read kernel BTF from '%s': %d\n", sysfs_btf_path, err);
49694969
return libbpf_err_ptr(err);
49704970
}
4971-
pr_debug("loaded kernel BTF from '%s'\n", path);
4971+
pr_debug("loaded kernel BTF from '%s'\n", sysfs_btf_path);
49724972
return btf;
49734973
}
49744974

0 commit comments

Comments
 (0)