diff options
author | Florian Westphal <fw@strlen.de> | 2015-10-22 22:32:27 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-10-23 10:55:10 +0200 |
commit | bb387002693ed28b2bb0408c5dec65521b71e5f1 (patch) | |
tree | 4721059ddc0143e4ffbdacf8ce1196e4bec85fc1 /lib/fault-inject.c | |
parent | lib/Kconfig.debug: disable -Wframe-larger-than warnings with KASAN=y (diff) | |
download | linux-bb387002693ed28b2bb0408c5dec65521b71e5f1.tar.xz linux-bb387002693ed28b2bb0408c5dec65521b71e5f1.zip |
fault-inject: fix inverted interval/probability values in printk
interval displays the probability and vice versa.
Fixes: 6adc4a22f20bb ("fault-inject: add ratelimit option")
Acked-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/fault-inject.c')
-rw-r--r-- | lib/fault-inject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fault-inject.c b/lib/fault-inject.c index f1cdeb024d17..6a823a53e357 100644 --- a/lib/fault-inject.c +++ b/lib/fault-inject.c @@ -44,7 +44,7 @@ static void fail_dump(struct fault_attr *attr) printk(KERN_NOTICE "FAULT_INJECTION: forcing a failure.\n" "name %pd, interval %lu, probability %lu, " "space %d, times %d\n", attr->dname, - attr->probability, attr->interval, + attr->interval, attr->probability, atomic_read(&attr->space), atomic_read(&attr->times)); if (attr->verbose > 1) |