libbpf: Fix build errors.
authorDavid Miller <davem@davemloft.net>
Tue, 19 Dec 2017 20:53:11 +0000 (15:53 -0500)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 20 Dec 2017 00:33:25 +0000 (01:33 +0100)
commit7d9890ef505a8c2a778d304535e26e827d58c466
treeecfdce336b2e383b862054b8a7135578bddbc53f
parent06ef0ccb5a36e1feba9b413ff59a04ecc4407c1c
libbpf: Fix build errors.

These elf object pieces are of type Elf64_Xword and therefore could be
"long long" on some builds.

Cast to "long long" and use printf format %lld to deal with this since
we are building with -Werror=format.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/libbpf.c