Commit b87dcfba authored by Roland Dreier's avatar Roland Dreier Committed by Linus Torvalds

[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: default avatarRoland Dreier <roland@topspin.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b635fa21
...@@ -344,10 +344,10 @@ static int mthca_eq_int(struct mthca_dev *dev, struct mthca_eq *eq) ...@@ -344,10 +344,10 @@ static int mthca_eq_int(struct mthca_dev *dev, struct mthca_eq *eq)
break; break;
case MTHCA_EVENT_TYPE_CQ_ERROR: 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 ? eqe->event.cq_err.syndrome == 1 ?
"overrun" : "access violation", "overrun" : "access violation",
be32_to_cpu(eqe->event.cq_err.cqn)); be32_to_cpu(eqe->event.cq_err.cqn) & 0xffffff);
break; break;
case MTHCA_EVENT_TYPE_EQ_OVERFLOW: case MTHCA_EVENT_TYPE_EQ_OVERFLOW:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment