linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fault-inject: correct printk order for interval vs. probability
@ 2015-11-17 11:48 Jesper Dangaard Brouer
  2015-11-18  8:39 ` Jesper Dangaard Brouer
  0 siblings, 1 reply; 2+ messages in thread
From: Jesper Dangaard Brouer @ 2015-11-17 11:48 UTC (permalink / raw)
  To: akinobu.mita, linux-kernel
  Cc: linux-mm, Andrew Morton, dmonakhov, Jesper Dangaard Brouer

In function fail_dump() printk output of the attributes interval and
probability got swapped.  This was introduced in commit
6adc4a22f20b ("fault-inject: add ratelimit option").

Fixes: 6adc4a22f20b ("fault-inject: add ratelimit option")
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>

---
Don't know who is maintainer for lib/, hope someone will
pick this up...

 lib/fault-inject.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-18  8:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-17 11:48 [PATCH] fault-inject: correct printk order for interval vs. probability Jesper Dangaard Brouer
2015-11-18  8:39 ` Jesper Dangaard Brouer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox