IB/mthca: Warning about event for non-existent QPs should show event type
authorDotan Barak <dotanb@dev.mellanox.co.il>
Wed, 11 Jul 2012 15:39:27 +0000 (15:39 +0000)
committerRoland Dreier <roland@purestorage.com>
Wed, 11 Jul 2012 16:22:57 +0000 (09:22 -0700)
Events received for non-existent QPs should generate a warning that includes
the event type that was received.

Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Reviewed-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mthca/mthca_qp.c

index 9601049..c3074a1 100644 (file)
@@ -247,7 +247,8 @@ void mthca_qp_event(struct mthca_dev *dev, u32 qpn,
        spin_unlock(&dev->qp_table.lock);
 
        if (!qp) {
-               mthca_warn(dev, "Async event for bogus QP %08x\n", qpn);
+               mthca_warn(dev, "Async event %d for bogus QP %08x\n",
+                          event_type, qpn);
                return;
        }