From 5fe07c724b5cd2bdbe632b41c083264cc0c14d71 Mon Sep 17 00:00:00 2001 From: Nick Kralevich <nnk@google.com> Date: Fri, 21 Sep 2018 10:31:54 -0700 Subject: [PATCH] version_policy.c: be less verbose at build time Avoid generating build time noise so that real errors stand out. https://en.wikipedia.org/wiki/Unix_philosophy Rule of Silence Developers should design programs so that they do not print unnecessary output. This rule aims to allow other programs and developers to pick out the information they need from a program's output without having to parse verbosity. Test: Info messages no longer show up at build time. Bug: 115998215 Change-Id: I33c18e2c7d77ed1bb4132debe13de2ae0907c34c --- tools/version_policy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/version_policy.c b/tools/version_policy.c index 24b2a3cc6..8848190a9 100644 --- a/tools/version_policy.c +++ b/tools/version_policy.c @@ -151,8 +151,8 @@ int main(int argc, char *argv[]) usage(argv[0]); } - /* gimme all the details */ - cil_set_log_level(CIL_INFO); + /* gimme only the important details */ + cil_set_log_level(CIL_WARN); /* read platform policy */ rc = read_cil_file(&base_db, base); -- GitLab