Skip to contentSkip to conversation

libbpf: Correct debug message in btf__load_vmlinux_btf

PATCH Applied Chen Shen 3 participants 3 messages Mar 2, 2024 – Mar 4, 2024

Subsystems (2)
lore
Share & tools
lore

Chen Shen

author
#0 lore raw

PATCH 1/1 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'.

---
 tools/lib/bpf/btf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/lib/bpf/btf.c +1 -1
index a17b4c9c4..2d0840ef5 100644
@@ -4968,7 +4968,7 @@ struct btf *btf__load_vmlinux_btf(void)
 			pr_warn("failed to read kernel BTF from '%s': %d\n", sysfs_btf_path, err);
 			return libbpf_err_ptr(err);
 		}
-		pr_debug("loaded kernel BTF from '%s'\n", path);
+		pr_debug("loaded kernel BTF from '%s'\n", sysfs_btf_path);
 		return btf;
 	}
 
Signature · 1 line
2.25.1
#2 lore raw
In reply to Chen Shen
This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <[email protected]>:

Hello:

This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <[email protected]>:

Quoted 7 lines · On Sat, 2 Mar 2024 14:22:18 +0800 you wrote:

In the function btf__load_vmlinux_btf, the debug message incorrectly refers to 'path' instead of 'sysfs_btf_path'.

---
 tools/lib/bpf/btf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- libbpf: Correct debug message in btf__load_vmlinux_btf

    https://git.kernel.org/bpf/bpf-next/c/25703adf45f8

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html