summaryrefslogtreecommitdiff
path: root/lib/fault-inject.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2015-10-22 23:32:27 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2015-10-23 11:55:10 +0300
commitbb387002693ed28b2bb0408c5dec65521b71e5f1 (patch)
tree4721059ddc0143e4ffbdacf8ce1196e4bec85fc1 /lib/fault-inject.c
parent3f181b4d8652f7bcd7e9932c7307b8ecd4d87cf6 (diff)
downloadlinux-bb387002693ed28b2bb0408c5dec65521b71e5f1.tar.xz
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.c2
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)