of: unittest: print pass messages at PR_INFO level

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2071840
Tested: This is one of a series of patch sets to enable Arm SystemReady IR
 support in the kernel for NXP i.MX8 platforms.  At this stage, this
 has been tested by ensuring we can survive the CI/CD loop -- i.e.,
 that we have not broken anything else, and a simple boot test.  When
 sufficient drivers have been brought in for i.MX8M, we will be able
 to run further tests.

commit 54eb8dc8f338962e12760fb718f4ca39a8cf3aa9
Author: Frank Rowand <frank.rowand@sony.com>
Date:   Thu Feb 10 17:08:19 2022 -0600

    of: unittest: print pass messages at PR_INFO level

    Printing the devicetree unittest pass message for each passed test
    creates much console verbosity.  The existing pass messages are
    printed at loglevel KERN_DEBUG so they will not print by default.

    Change default to print the pass messages at loglevel PR_INFO so
    they will print with the default console loglevel.

    The test community expects either a pass or a fail message for each
    test in a test suite.  The messages are typically post-processed to
    report pass/fail results.

    Signed-off-by: Frank Rowand <frank.rowand@sony.com>
    Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
    Signed-off-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20220210230819.3303212-1-frowand.list@gmail.com
    (cherry picked from commit 54eb8dc8f338962e12760fb718f4ca39a8cf3aa9)

Signed-off-by: Al Stone <ahs3@redhat.com>
This commit is contained in:
Al Stone 2022-06-30 16:34:56 -06:00
parent bc4a3c12d9
commit d22e24d0c8
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ static struct unittest_results {
pr_err("FAIL %s():%i " fmt, __func__, __LINE__, ##__VA_ARGS__); \
} else { \
unittest_results.passed++; \
pr_debug("pass %s():%i\n", __func__, __LINE__); \
pr_info("pass %s():%i\n", __func__, __LINE__); \
} \
failed; \
})