Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errptrError format %s has arg pid of wrong type int #33

Closed
rafaeldtinoco opened this issue Jul 8, 2021 · 1 comment
Closed

errptrError format %s has arg pid of wrong type int #33

rafaeldtinoco opened this issue Jul 8, 2021 · 1 comment

Comments

@rafaeldtinoco
Copy link
Contributor

With the selftest PR in place:

#28

I got

$ make libbpfgo-static-test
make -C ./selftest/build
make[1]: Entering directory '/home/rafaeldtinoco/work/sources/ebpf/libbpfgo/selftest/build'
make -C /home/rafaeldtinoco/work/sources/ebpf/libbpfgo vmlinuxh
make[2]: Entering directory '/home/rafaeldtinoco/work/sources/ebpf/libbpfgo'
mkdir -p ./output
make[2]: Leaving directory '/home/rafaeldtinoco/work/sources/ebpf/libbpfgo'
clang -g -O2 -Wall -fpie -target bpf -I../../output -c libbpfgo_test.bpf.c -o libbpfgo_test.bpf.o
make[1]: Leaving directory '/home/rafaeldtinoco/work/sources/ebpf/libbpfgo/selftest/build'
CC=clang \
   CGO_CFLAGS="-I/home/rafaeldtinoco/work/sources/ebpf/libbpfgo/output" \
   CGO_LDFLAGS="-lelf -lz /home/rafaeldtinoco/work/sources/ebpf/libbpfgo/output/libbpf.a" \
   sudo -E go test .
# github.com/aquasecurity/libbpfgo
./libbpfgo.go:790:15: errptrError format %s has arg pid of wrong type int
./libbpfgo.go:802:14: Sprintf format %s has arg offset of wrong type uint32
FAIL	github.com/aquasecurity/libbpfgo [build failed]
FAIL
make: *** [Makefile:79: libbpfgo-static-test] Error 2

from go test. I believe:

10aa311

Fixes the issue

@rafaeldtinoco
Copy link
Contributor Author

I think it can be merged in the same PR (#28).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant