diff options
author | Roland Dreier <roland@topspin.com> | 2005-04-16 18:26:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:26:22 -0400 |
commit | b87dcfbacee9c57b39738f43f32834f02ec302d5 (patch) | |
tree | 179fcf61040e2ac160ea38d3ca79e5f9d04cdd94 /drivers/infiniband | |
parent | b635fa215192a02e58e8e30d5d927435aa108192 (diff) |
[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 <roland@topspin.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_eq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_eq.c b/drivers/infiniband/hw/mthca/mthca_eq.c index 623daab5c92b..b6f2a46fc84b 100644 --- a/drivers/infiniband/hw/mthca/mthca_eq.c +++ b/drivers/infiniband/hw/mthca/mthca_eq.c | |||
@@ -344,10 +344,10 @@ static int mthca_eq_int(struct mthca_dev *dev, struct mthca_eq *eq) | |||
344 | break; | 344 | break; |
345 | 345 | ||
346 | case MTHCA_EVENT_TYPE_CQ_ERROR: | 346 | case MTHCA_EVENT_TYPE_CQ_ERROR: |
347 | mthca_warn(dev, "CQ %s on CQN %08x\n", | 347 | mthca_warn(dev, "CQ %s on CQN %06x\n", |
348 | eqe->event.cq_err.syndrome == 1 ? | 348 | eqe->event.cq_err.syndrome == 1 ? |
349 | "overrun" : "access violation", | 349 | "overrun" : "access violation", |
350 | be32_to_cpu(eqe->event.cq_err.cqn)); | 350 | be32_to_cpu(eqe->event.cq_err.cqn) & 0xffffff); |
351 | break; | 351 | break; |
352 | 352 | ||
353 | case MTHCA_EVENT_TYPE_EQ_OVERFLOW: | 353 | case MTHCA_EVENT_TYPE_EQ_OVERFLOW: |