kunit/fortify: Do not spam logs with fortify WARNs
authorKees Cook <keescook@chromium.org>
Mon, 29 Apr 2024 19:43:40 +0000 (12:43 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 30 Apr 2024 17:34:29 +0000 (10:34 -0700)
commit091f79e8de44736a1e677701d67334bba5b749e3
treea1842aa70977a3a9e554dac82fae597bb6f1717e
parenta0d6677ec3f1da894cad9df6a962821429828917
kunit/fortify: Do not spam logs with fortify WARNs

When running KUnit fortify tests, we're already doing precise tracking
of which warnings are getting hit. Don't fill the logs with WARNs unless
we've been explicitly built with DEBUG enabled.

Link: https://lore.kernel.org/r/20240429194342.2421639-2-keescook@chromium.org
Signed-off-by: Kees Cook <keescook@chromium.org>
lib/fortify_kunit.c