linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] ib_srpt: fix a WARN_ON() message
@ 2016-03-18  5:41 Dan Carpenter
  2016-03-19  1:17 ` Bart Van Assche
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Carpenter @ 2016-03-18  5:41 UTC (permalink / raw)
  To: Doug Ledford, Bart Van Assche
  Cc: Sean Hefty, Hal Rosenstock, Nicholas Bellinger, Sagi Grimberg,
	Alex Estrin, linux-rdma, linux-kernel, kernel-janitors

The first argument of WARN_ON() is a condition, so it means the warning
message here will just be the name without the ->qp_num information.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c
index 1d13090..0bd3cb2 100644
--- a/drivers/infiniband/ulp/srpt/ib_srpt.c
+++ b/drivers/infiniband/ulp/srpt/ib_srpt.c
@@ -839,7 +839,7 @@ static void srpt_zerolength_write_done(struct ib_cq *cq, struct ib_wc *wc)
 		if (srpt_set_ch_state(ch, CH_DISCONNECTED))
 			schedule_work(&ch->release_work);
 		else
-			WARN_ONCE("%s-%d\n", ch->sess_name, ch->qp->qp_num);
+			WARN_ONCE(1, "%s-%d\n", ch->sess_name, ch->qp->qp_num);
 	}
 }
 

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

end of thread, other threads:[~2016-03-21 20:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-18  5:41 [patch] ib_srpt: fix a WARN_ON() message Dan Carpenter
2016-03-19  1:17 ` Bart Van Assche
     [not found]   ` <56ECA8A0.5060502-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2016-03-21 20:15     ` Doug Ledford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).