diff options
author | Joe Perches <joe@perches.com> | 2007-10-03 20:59:30 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:42 -0400 |
commit | 0795af5729b18218767fab27c44b1384f72dc9ad (patch) | |
tree | 67c16df84aa6ec219340b8ea1b5cfb0e8150a216 /drivers/net/ibmveth.c | |
parent | 95ea36275f3c9a1d3d04c217b4b576c657c4e70e (diff) |
[NET]: Introduce and use print_mac() and DECLARE_MAC_BUF()
This is nicer than the MAC_FMT stuff.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ibmveth.c')
-rw-r--r-- | drivers/net/ibmveth.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/ibmveth.c b/drivers/net/ibmveth.c index 0636883449fc..228973484ed8 100644 --- a/drivers/net/ibmveth.c +++ b/drivers/net/ibmveth.c | |||
@@ -1276,16 +1276,13 @@ static int ibmveth_seq_show(struct seq_file *seq, void *v) | |||
1276 | struct ibmveth_adapter *adapter = seq->private; | 1276 | struct ibmveth_adapter *adapter = seq->private; |
1277 | char *current_mac = ((char*) &adapter->netdev->dev_addr); | 1277 | char *current_mac = ((char*) &adapter->netdev->dev_addr); |
1278 | char *firmware_mac = ((char*) &adapter->mac_addr) ; | 1278 | char *firmware_mac = ((char*) &adapter->mac_addr) ; |
1279 | DECLARE_MAC_BUF(mac); | ||
1279 | 1280 | ||
1280 | seq_printf(seq, "%s %s\n\n", ibmveth_driver_string, ibmveth_driver_version); | 1281 | seq_printf(seq, "%s %s\n\n", ibmveth_driver_string, ibmveth_driver_version); |
1281 | 1282 | ||
1282 | seq_printf(seq, "Unit Address: 0x%x\n", adapter->vdev->unit_address); | 1283 | seq_printf(seq, "Unit Address: 0x%x\n", adapter->vdev->unit_address); |
1283 | seq_printf(seq, "Current MAC: %02X:%02X:%02X:%02X:%02X:%02X\n", | 1284 | seq_printf(seq, "Current MAC: %s\n", print_mac(mac, current_mac)); |
1284 | current_mac[0], current_mac[1], current_mac[2], | 1285 | seq_printf(seq, "Firmware MAC: %s\n", print_mac(mac, firmware_mac)); |
1285 | current_mac[3], current_mac[4], current_mac[5]); | ||
1286 | seq_printf(seq, "Firmware MAC: %02X:%02X:%02X:%02X:%02X:%02X\n", | ||
1287 | firmware_mac[0], firmware_mac[1], firmware_mac[2], | ||
1288 | firmware_mac[3], firmware_mac[4], firmware_mac[5]); | ||
1289 | 1286 | ||
1290 | seq_printf(seq, "\nAdapter Statistics:\n"); | 1287 | seq_printf(seq, "\nAdapter Statistics:\n"); |
1291 | seq_printf(seq, " TX: vio_map_single failres: %ld\n", adapter->tx_map_failed); | 1288 | seq_printf(seq, " TX: vio_map_single failres: %ld\n", adapter->tx_map_failed); |