Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1271107

[PATCH] fault-inject: correct printk order for interval vs. probability

From Jesper Dangaard Brouer <brouer@redhat.com>
Newsgroups linux.kernel
Subject [PATCH] fault-inject: correct printk order for interval vs. probability
Date 2015-11-17 12:50 +0100
Message-ID <qvMVR-4uY-27@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] fault-inject: correct printk order for interval vs.  probability Jesper Dangaard Brouer <brouer@redhat.com> - 2015-11-17 12:50 +0100
  Re: [PATCH] fault-inject: correct printk order for interval vs.  probability Jesper Dangaard Brouer <brouer@redhat.com> - 2015-11-18 09:50 +0100

csiph-web