Skip to content

Commit

Permalink
fault-inject: fix inverted interval/probability values in printk
Browse files Browse the repository at this point in the history
interval displays the probability and vice versa.

Fixes: 6adc4a2 ("fault-inject: add ratelimit option")
Acked-by: Akinobu Mita <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Florian Westphal authored and torvalds committed Oct 23, 2015
1 parent 3f181b4 commit bb38700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fault-inject.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bb38700

Please sign in to comment.