summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2015-10-22 13:32:27 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-11-09 14:33:34 -0800
commit65bda5f8ba4552e6f16a2c9d94f2b367a4456875 (patch)
treebd64b4c584fe8e74119207f0b27af5fd6384e837 /lib
parent6c0da28df5dac10672efe955eb89051a850008eb (diff)
downloadlwn-65bda5f8ba4552e6f16a2c9d94f2b367a4456875.tar.gz
lwn-65bda5f8ba4552e6f16a2c9d94f2b367a4456875.zip
fault-inject: fix inverted interval/probability values in printk
commit bb387002693ed28b2bb0408c5dec65521b71e5f1 upstream. interval displays the probability and vice versa. Fixes: 6adc4a22f20bb ("fault-inject: add ratelimit option") Acked-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib')
-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)