tree ac390dd0c99d171e4f23f51de2078137a7abd917
parent 08f5b33af9a2ad8405ba62bc0c85cad633a77a1f
author Roland Dreier <[EMAIL PROTECTED]> Tue Apr 12 08:26:49 2005
committer Linus Torvalds <[EMAIL PROTECTED]> Tue Apr 12 08:26:49 2005

[PATCH] IB/mthca: fix format of CQ number for CQ events

CQ numbers are only 24 bits, so only print 6 hex digits and mask off reserved
part when reporting a CQ event.

Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 mthca_eq.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Index: drivers/infiniband/hw/mthca/mthca_eq.c
===================================================================
--- 
12c5b9e7dde8bbe5731adfdca082512979a3173a/drivers/infiniband/hw/mthca/mthca_eq.c 
 (mode:100644 sha1:0216771089e660776e5aa3897a8fcdbdcb3bedb9)
+++ 
ac390dd0c99d171e4f23f51de2078137a7abd917/drivers/infiniband/hw/mthca/mthca_eq.c 
 (mode:100644 sha1:a07c516b0079377ee89e54e681153a9b68501193)
@@ -344,10 +344,10 @@
                        break;
 
                case MTHCA_EVENT_TYPE_CQ_ERROR:
-                       mthca_warn(dev, "CQ %s on CQN %08x\n",
+                       mthca_warn(dev, "CQ %s on CQN %06x\n",
                                   eqe->event.cq_err.syndrome == 1 ?
                                   "overrun" : "access violation",
-                                  be32_to_cpu(eqe->event.cq_err.cqn));
+                                  be32_to_cpu(eqe->event.cq_err.cqn) & 
0xffffff);
                        break;
 
                case MTHCA_EVENT_TYPE_EQ_OVERFLOW:
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to