OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f181b4
)
fault-inject: fix inverted interval/probability values in printk
author
Florian Westphal
<fw@strlen.de>
Thu, 22 Oct 2015 20:32:27 +0000
(13:32 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 23 Oct 2015 08:55:10 +0000
(17:55 +0900)
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>
lib/fault-inject.c
patch
|
blob
|
history
diff --git
a/lib/fault-inject.c
b/lib/fault-inject.c
index
f1cdeb0
..
6a823a5
100644
(file)
--- 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)