]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kselftest/arm64: mte: fix printf type warnings about longs
authorAndre Przywara <andre.przywara@arm.com>
Fri, 16 Aug 2024 15:32:51 +0000 (16:32 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 17 Oct 2024 17:54:35 +0000 (18:54 +0100)
commit96dddb7b9406259baace9a1831e8da155311be6f
tree09a6f1d87d4b64ffe2455fdd27dac65dba01a9a2
parent4716f719202e900b52f5f2270ac16b6a8ae40a47
kselftest/arm64: mte: fix printf type warnings about longs

When checking MTE tags, we print some diagnostic messages when the tests
fail. Some variables uses there are "longs", however we only use "%x"
for the format specifier.

Update the format specifiers to "%lx", to match the variable types they
are supposed to print.

Fixes: f3b2a26ca78d ("kselftest/arm64: Verify mte tag inclusion via prctl")
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20240816153251.2833702-9-andre.przywara@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/mte/check_tags_inclusion.c