]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scanf: implicate test line in failure messages
authorTamir Duberstein <tamird@gmail.com>
Fri, 7 Mar 2025 11:27:34 +0000 (06:27 -0500)
committerKees Cook <kees@kernel.org>
Fri, 14 Mar 2025 20:50:44 +0000 (13:50 -0700)
commit5866730da7232dca5dc3b91645c964f3ec195c9d
treeb511c1e4d89e31d28e11e71ed06da2c5d5043247
parent034bee685fd48101aff31591273258be0377b1ef
scanf: implicate test line in failure messages

This improves the failure output by pointing to the failing line at the
top level of the test.

Reviewed-by: Petr Mladek <pmladek@suse.com>
Tested-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Link: https://lore.kernel.org/r/20250307-scanf-kunit-convert-v9-1-b98820fa39ff@gmail.com
Signed-off-by: Kees Cook <kees@kernel.org>
lib/test_scanf.c