diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-10-29 01:36:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-29 02:02:35 -0400 |
commit | 8867cd7c8678ff2d9d0382dbbfbcc7a3e7e61cbc (patch) | |
tree | 6674bc3736fe672dfbaef9c389fa21ac9ec39c1a /drivers/infiniband/hw | |
parent | b30200616f97a81243e6d0c644d8ab06bf0b8115 (diff) |
infiniband: use %p6 for printing message ids
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_mcg.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_mcg.c b/drivers/infiniband/hw/mthca/mthca_mcg.c index 3f5f94879208..693bed0b2d1c 100644 --- a/drivers/infiniband/hw/mthca/mthca_mcg.c +++ b/drivers/infiniband/hw/mthca/mthca_mcg.c | |||
@@ -87,17 +87,7 @@ static int find_mgm(struct mthca_dev *dev, | |||
87 | } | 87 | } |
88 | 88 | ||
89 | if (0) | 89 | if (0) |
90 | mthca_dbg(dev, "Hash for %04x:%04x:%04x:%04x:" | 90 | mthca_dbg(dev, "Hash for %p6 is %04x\n", gid, *hash); |
91 | "%04x:%04x:%04x:%04x is %04x\n", | ||
92 | be16_to_cpu(((__be16 *) gid)[0]), | ||
93 | be16_to_cpu(((__be16 *) gid)[1]), | ||
94 | be16_to_cpu(((__be16 *) gid)[2]), | ||
95 | be16_to_cpu(((__be16 *) gid)[3]), | ||
96 | be16_to_cpu(((__be16 *) gid)[4]), | ||
97 | be16_to_cpu(((__be16 *) gid)[5]), | ||
98 | be16_to_cpu(((__be16 *) gid)[6]), | ||
99 | be16_to_cpu(((__be16 *) gid)[7]), | ||
100 | *hash); | ||
101 | 91 | ||
102 | *index = *hash; | 92 | *index = *hash; |
103 | *prev = -1; | 93 | *prev = -1; |
@@ -264,16 +254,7 @@ int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) | |||
264 | goto out; | 254 | goto out; |
265 | 255 | ||
266 | if (index == -1) { | 256 | if (index == -1) { |
267 | mthca_err(dev, "MGID %04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x " | 257 | mthca_err(dev, "MGID %p6 not found\n", gid->raw); |
268 | "not found\n", | ||
269 | be16_to_cpu(((__be16 *) gid->raw)[0]), | ||
270 | be16_to_cpu(((__be16 *) gid->raw)[1]), | ||
271 | be16_to_cpu(((__be16 *) gid->raw)[2]), | ||
272 | be16_to_cpu(((__be16 *) gid->raw)[3]), | ||
273 | be16_to_cpu(((__be16 *) gid->raw)[4]), | ||
274 | be16_to_cpu(((__be16 *) gid->raw)[5]), | ||
275 | be16_to_cpu(((__be16 *) gid->raw)[6]), | ||
276 | be16_to_cpu(((__be16 *) gid->raw)[7])); | ||
277 | err = -EINVAL; | 258 | err = -EINVAL; |
278 | goto out; | 259 | goto out; |
279 | } | 260 | } |