bpf/tests: Enhance output on error and fix typos
authorHelge Deller <deller@gmx.de>
Thu, 17 Aug 2023 22:02:40 +0000 (00:02 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 18 Aug 2023 15:08:42 +0000 (17:08 +0200)
commitb6594a17ecce03ca70a3f36783924635eea5499d
treea595e59badfee06ee739fa88226030f0d20ece8e
parent6c77997bc63982ab718662fee0bff6756d3116bc
bpf/tests: Enhance output on error and fix typos

If a testcase returns a wrong (unexpected) value, print the expected and
returned value in hex notation in addition to the decimal notation.

This is very useful in tests which bit-shift hex values left or right and
helped me a lot while developing the JIT compiler for the hppa architecture.

Additionally fix two typos: dowrd -> dword, tall calls -> tail calls.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/ZN6ZAAVoWZpsD1Jf@p100
lib/test_bpf.c