libbpf: Fix map index used in error message
authorToke Høiland-Jørgensen <toke@redhat.com>
Wed, 19 Aug 2020 11:05:34 +0000 (13:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Sep 2020 09:29:38 +0000 (11:29 +0200)
commitd5a4d2f25d77133364a1a25d053818981e4bca44
tree875994405d780e434fa3b8037396d219287613cf
parent1c20c32e8a2a58909adb72aaf9c0be87c9ead0c4
libbpf: Fix map index used in error message

[ Upstream commit 1e891e513e16c145cc9b45b1fdb8bf4a4f2f9557 ]

The error message emitted by bpf_object__init_user_btf_maps() was using the
wrong section ID.

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200819110534.9058-1-toke@redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/lib/bpf/libbpf.c