Commit 595acf27 authored by hartleys's avatar hartleys Committed by David S. Miller

drivers/net/wimax/i2400m/fw.c: use %pM to show MAC address

Use the %pM kernel extension to display the MAC address.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 82991172
...@@ -1041,21 +1041,14 @@ int i2400m_read_mac_addr(struct i2400m *i2400m) ...@@ -1041,21 +1041,14 @@ int i2400m_read_mac_addr(struct i2400m *i2400m)
dev_err(dev, "BM: read mac addr failed: %d\n", result); dev_err(dev, "BM: read mac addr failed: %d\n", result);
goto error_read_mac; goto error_read_mac;
} }
d_printf(2, dev, d_printf(2, dev, "mac addr is %pM\n", ack_buf.ack_pl);
"mac addr is %02x:%02x:%02x:%02x:%02x:%02x\n",
ack_buf.ack_pl[0], ack_buf.ack_pl[1],
ack_buf.ack_pl[2], ack_buf.ack_pl[3],
ack_buf.ack_pl[4], ack_buf.ack_pl[5]);
if (i2400m->bus_bm_mac_addr_impaired == 1) { if (i2400m->bus_bm_mac_addr_impaired == 1) {
ack_buf.ack_pl[0] = 0x00; ack_buf.ack_pl[0] = 0x00;
ack_buf.ack_pl[1] = 0x16; ack_buf.ack_pl[1] = 0x16;
ack_buf.ack_pl[2] = 0xd3; ack_buf.ack_pl[2] = 0xd3;
get_random_bytes(&ack_buf.ack_pl[3], 3); get_random_bytes(&ack_buf.ack_pl[3], 3);
dev_err(dev, "BM is MAC addr impaired, faking MAC addr to " dev_err(dev, "BM is MAC addr impaired, faking MAC addr to "
"mac addr is %02x:%02x:%02x:%02x:%02x:%02x\n", "mac addr is %pM\n", ack_buf.ack_pl);
ack_buf.ack_pl[0], ack_buf.ack_pl[1],
ack_buf.ack_pl[2], ack_buf.ack_pl[3],
ack_buf.ack_pl[4], ack_buf.ack_pl[5]);
result = 0; result = 0;
} }
net_dev->addr_len = ETH_ALEN; net_dev->addr_len = ETH_ALEN;
......
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