[ofa-general] [PATCH 2 of 2] mthca: for events for non-existent QPs, print a message only in debug mode

Jack Morgenstein jackm at dev.mellanox.co.il
Wed Feb 27 06:48:08 PST 2008


mthca: print message only in debug mode for events received for non-existent QPs

Events received for non-existent QPs are of interest only when debugging.
Print messages when this occurs only if running in debug mode.

In addition, add the event number to the printout.

Signed-off-by: Jack Morgenstein <jackm at dev.mellanox.co.il>

Index: infiniband/drivers/infiniband/hw/mthca/mthca_qp.c
===================================================================
--- infiniband.orig/drivers/infiniband/hw/mthca/mthca_qp.c	2008-02-05 09:32:14.000000000 +0200
+++ infiniband/drivers/infiniband/hw/mthca/mthca_qp.c	2008-02-27 16:22:46.000000000 +0200
@@ -249,7 +249,8 @@ void mthca_qp_event(struct mthca_dev *de
 	spin_unlock(&dev->qp_table.lock);
 
 	if (!qp) {
-		mthca_warn(dev, "Async event for bogus QP %08x\n", qpn);
+		mthca_dbg(dev, "Async event %d for bogus QP %08x\n",
+			  (int) event_type, qpn);
 		return;
 	}
 



More information about the general mailing list