diff options
author | Andy Shevchenko <andy.shevchenko@gmail.com> | 2010-09-11 14:17:07 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-09-16 19:26:11 (GMT) |
commit | ff5cb20b7b3a58122207e14f23f508d2e3b4b25d (patch) | |
tree | 91e537a80708c5b7fdfad14ecc171e0c0e925c19 /drivers | |
parent | 3c02dc22a2559f1eab7cb261d106bab9c5de7938 (diff) | |
download | linux-fsl-qoriq-ff5cb20b7b3a58122207e14f23f508d2e3b4b25d.tar.xz |
staging: cxt1e1: use '%pMF' format to print MAC address
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/cxt1e1/sbeproc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/cxt1e1/sbeproc.c b/drivers/staging/cxt1e1/sbeproc.c index 4f4dcd3..af8fce4 100644 --- a/drivers/staging/cxt1e1/sbeproc.c +++ b/drivers/staging/cxt1e1/sbeproc.c @@ -142,9 +142,8 @@ sbecom_proc_get_sbe_info (char *buffer, char **start, off_t offset, len += sprintf (buffer + len, "Board Number: %d\n", bip->brdno); len += sprintf (buffer + len, "Hardware ID: 0x%02X\n", ci->hdw_bid); len += sprintf (buffer + len, "Board SN: %06X\n", bip->brd_sn); - len += sprintf (buffer + len, "Board MAC: %02X-%02X-%02X-%02X-%02X-%02X\n", - bip->brd_mac_addr[0], bip->brd_mac_addr[1], bip->brd_mac_addr[2], - bip->brd_mac_addr[3], bip->brd_mac_addr[4], bip->brd_mac_addr[5]); + len += sprintf(buffer + len, "Board MAC: %pMF\n", + &bip->brd_mac_addr[0]); len += sprintf (buffer + len, "Ports: %d\n", ci->max_port); len += sprintf (buffer + len, "Channels: %d\n", bip->brd_chan_cnt); #if 1 |