mlx4: 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/net/mlx4/qp.c
===================================================================
--- infiniband.orig/drivers/net/mlx4/qp.c       2008-01-28 13:07:57.000000000 
+0200
+++ infiniband/drivers/net/mlx4/qp.c    2008-02-27 16:25:07.000000000 +0200
@@ -55,7 +55,8 @@ void mlx4_qp_event(struct mlx4_dev *dev,
        spin_unlock(&qp_table->lock);
 
        if (!qp) {
-               mlx4_warn(dev, "Async event for bogus QP %08x\n", qpn);
+               mlx4_dbg(dev, "Async event %d for bogus QP %08x\n",
+                        event_type, qpn);
                return;
        }
 
_______________________________________________
general mailing list
general@lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

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

Reply via email to