selftests/harness: Display signed values correctly
authorKees Cook <keescook@chromium.org>
Mon, 22 Jun 2020 18:16:50 +0000 (11:16 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 6 Jul 2020 21:59:49 +0000 (15:59 -0600)
commitd088c92802549fc1cf77a12a4e3986160d63662a
tree1d2f994e8f12c8a30b30541b1b66df326188260b
parent9847d24af95c7fa146c9a0e82505a78e29161c10
selftests/harness: Display signed values correctly

Since forever the harness output for signed value tests have reported
unsigned values to avoid casting. Instead, actually test the variable
types and perform the correct casts and choose the correct format
specifiers.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/kselftest_harness.h