]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
time: test: Fix incorrect format specifier
authorDavid Gow <davidgow@google.com>
Wed, 21 Feb 2024 09:27:17 +0000 (17:27 +0800)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:18 +0000 (18:19 -0400)
commit491ed9f9ebafc62c083187b89c35e46cb5198030
tree8c07052506e331e681cbd4a44f2f34e4acf544ed
parent3c3d394b531fe141ddabc02eed7b7d4a9e49da9c
time: test: Fix incorrect format specifier

[ Upstream commit 133e267ef4a26d19c93996a874714e9f3f8c70aa ]

'days' is a s64 (from div_s64), and so should use a %lld specifier.

This was found by extending KUnit's assertion macros to use gcc's
__printf attribute.

Fixes: 276010551664 ("time: Improve performance of time64_to_tm()")
Signed-off-by: David Gow <davidgow@google.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Justin Stitt <justinstitt@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/time/time_test.c