summaryrefslogtreecommitdiffstats
path: root/arch/s390/lib
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2021-04-13 13:28:50 +0200
committerHeiko Carstens <hca@linux.ibm.com>2021-04-15 17:47:42 +0200
commit5d8da6951ee2b2f7785ead62f785f3b3dd254104 (patch)
tree9b31b277f75a526aab55093e8cbb290841adabc8 /arch/s390/lib
parent13525f0a62cc258b2b2266478cc5fec0a45d1e71 (diff)
downloadlinux-5d8da6951ee2b2f7785ead62f785f3b3dd254104.tar.bz2
s390/test_unwind: print test suite start/end info
Add couple of additional info lines to make it easier to match test suite output and results. Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/lib')
-rw-r--r--arch/s390/lib/test_unwind.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/s390/lib/test_unwind.c b/arch/s390/lib/test_unwind.c
index eda72bc49c79..2f32802f79ce 100644
--- a/arch/s390/lib/test_unwind.c
+++ b/arch/s390/lib/test_unwind.c
@@ -311,6 +311,7 @@ do { \
} \
} while (0)
+ pr_info("running stack unwinder tests");
TEST(UWM_DEFAULT);
TEST(UWM_SP);
TEST(UWM_REGS);
@@ -337,8 +338,13 @@ do { \
TEST(UWM_PGM | UWM_SP | UWM_REGS);
#endif
#undef TEST
+ if (failed) {
+ pr_err("%d of %d stack unwinder tests failed", failed, total);
+ WARN(1, "%d of %d stack unwinder tests failed", failed, total);
+ } else {
+ pr_info("all %d stack unwinder tests passed", total);
+ }
- WARN(failed, "%d of %d unwinder tests failed", failed, total);
return failed ? -EINVAL : 0;
}