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/net/mlx4 | |
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/net/mlx4')
-rw-r--r-- | drivers/net/mlx4/mcg.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/drivers/net/mlx4/mcg.c b/drivers/net/mlx4/mcg.c index 592c01ae2c5d..6f79e84a5c9a 100644 --- a/drivers/net/mlx4/mcg.c +++ b/drivers/net/mlx4/mcg.c | |||
@@ -118,17 +118,7 @@ static int find_mgm(struct mlx4_dev *dev, | |||
118 | return err; | 118 | return err; |
119 | 119 | ||
120 | if (0) | 120 | if (0) |
121 | mlx4_dbg(dev, "Hash for %04x:%04x:%04x:%04x:" | 121 | mlx4_dbg(dev, "Hash for %p6 is %04x\n", gid, *hash); |
122 | "%04x:%04x:%04x:%04x is %04x\n", | ||
123 | be16_to_cpu(((__be16 *) gid)[0]), | ||
124 | be16_to_cpu(((__be16 *) gid)[1]), | ||
125 | be16_to_cpu(((__be16 *) gid)[2]), | ||
126 | be16_to_cpu(((__be16 *) gid)[3]), | ||
127 | be16_to_cpu(((__be16 *) gid)[4]), | ||
128 | be16_to_cpu(((__be16 *) gid)[5]), | ||
129 | be16_to_cpu(((__be16 *) gid)[6]), | ||
130 | be16_to_cpu(((__be16 *) gid)[7]), | ||
131 | *hash); | ||
132 | 122 | ||
133 | *index = *hash; | 123 | *index = *hash; |
134 | *prev = -1; | 124 | *prev = -1; |
@@ -277,16 +267,7 @@ int mlx4_multicast_detach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16]) | |||
277 | goto out; | 267 | goto out; |
278 | 268 | ||
279 | if (index == -1) { | 269 | if (index == -1) { |
280 | mlx4_err(dev, "MGID %04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x " | 270 | mlx4_err(dev, "MGID %p6 not found\n", gid); |
281 | "not found\n", | ||
282 | be16_to_cpu(((__be16 *) gid)[0]), | ||
283 | be16_to_cpu(((__be16 *) gid)[1]), | ||
284 | be16_to_cpu(((__be16 *) gid)[2]), | ||
285 | be16_to_cpu(((__be16 *) gid)[3]), | ||
286 | be16_to_cpu(((__be16 *) gid)[4]), | ||
287 | be16_to_cpu(((__be16 *) gid)[5]), | ||
288 | be16_to_cpu(((__be16 *) gid)[6]), | ||
289 | be16_to_cpu(((__be16 *) gid)[7])); | ||
290 | err = -EINVAL; | 271 | err = -EINVAL; |
291 | goto out; | 272 | goto out; |
292 | } | 273 | } |