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 <[EMAIL PROTECTED]>

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;
        }
 
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to