From: Ingo Molnar Date: Wed, 18 Jun 2008 08:09:48 +0000 (+0200) Subject: rcutorture: WARN_ON_ONCE(1) when detecting an error X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5af970a48f3ba0dd96a036b196c79dc923f28231;p=linux-beck.git rcutorture: WARN_ON_ONCE(1) when detecting an error this makes it easier for automated tests to pick up such failures. --- diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c index 0334b6a8baca..0ca7e9b290b0 100644 --- a/kernel/rcutorture.c +++ b/kernel/rcutorture.c @@ -687,6 +687,7 @@ rcu_torture_printk(char *page) if (i > 1) { cnt += sprintf(&page[cnt], "!!! "); atomic_inc(&n_rcu_torture_error); + WARN_ON_ONCE(1); } cnt += sprintf(&page[cnt], "Reader Pipe: "); for (i = 0; i < RCU_TORTURE_PIPE_LEN + 1; i++)