BPF List
 help / color / mirror / Atom feed
* [PATCH] libbpf: Correct debug message in btf__load_vmlinux_btf
@ 2024-03-02  6:22 Chen Shen
  2024-03-02 16:55 ` Yonghong Song
  2024-03-04 13:40 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Chen Shen @ 2024-03-02  6:22 UTC (permalink / raw)
  To: eddyz87, andrii; +Cc: bpf, Chen Shen

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>
---
 tools/lib/bpf/btf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/lib/bpf/btf.c b/tools/lib/bpf/btf.c
index a17b4c9c4..2d0840ef5 100644
--- a/tools/lib/bpf/btf.c
+++ b/tools/lib/bpf/btf.c
@@ -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;
 	}
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] libbpf: Correct debug message in btf__load_vmlinux_btf
  2024-03-02  6:22 [PATCH] libbpf: Correct debug message in btf__load_vmlinux_btf Chen Shen
@ 2024-03-02 16:55 ` Yonghong Song
  2024-03-04 13:40 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Yonghong Song @ 2024-03-02 16:55 UTC (permalink / raw)
  To: Chen Shen, eddyz87, andrii; +Cc: bpf


On 3/1/24 10:22 PM, Chen Shen wrote:
> 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>

Acked-by: Yonghong Song <yonghong.song@linux.dev>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] libbpf: Correct debug message in btf__load_vmlinux_btf
  2024-03-02  6:22 [PATCH] libbpf: Correct debug message in btf__load_vmlinux_btf Chen Shen
  2024-03-02 16:55 ` Yonghong Song
@ 2024-03-04 13:40 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-03-04 13:40 UTC (permalink / raw)
  To: Chen Shen; +Cc: eddyz87, andrii, bpf

Hello:

This patch was applied to bpf/bpf-next.git (master)
by Daniel Borkmann <daniel@iogearbox.net>:

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'.
> 
> Signed-off-by: Chen Shen <peterchenshen@gmail.com>
> ---
>  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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-03-04 13:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-02  6:22 [PATCH] libbpf: Correct debug message in btf__load_vmlinux_btf Chen Shen
2024-03-02 16:55 ` Yonghong Song
2024-03-04 13:40 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox