diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2011-07-18 04:22:06 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-22 20:54:59 -0400 |
commit | 25b8a88c10770e8c3f14bf2e222691dc6e79de78 (patch) | |
tree | 21832c21ed019e12314e3675d88b3584d7b1a334 /drivers/misc/pch_phub.c | |
parent | dd7d7fea29c18b818e94f252a76f495490d399c3 (diff) |
pch_phub: use kernel's '%pM' format option to print MAC
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/misc/pch_phub.c')
-rw-r--r-- | drivers/misc/pch_phub.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/misc/pch_phub.c b/drivers/misc/pch_phub.c index 61ece53f2f41..dee33addcaeb 100644 --- a/drivers/misc/pch_phub.c +++ b/drivers/misc/pch_phub.c | |||
@@ -601,8 +601,7 @@ static ssize_t show_pch_mac(struct device *dev, struct device_attribute *attr, | |||
601 | 601 | ||
602 | pch_phub_read_gbe_mac_addr(chip, mac); | 602 | pch_phub_read_gbe_mac_addr(chip, mac); |
603 | 603 | ||
604 | return sprintf(buf, "%02x:%02x:%02x:%02x:%02x:%02x\n", | 604 | return sprintf(buf, "%pM\n", mac); |
605 | mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); | ||
606 | } | 605 | } |
607 | 606 | ||
608 | static ssize_t store_pch_mac(struct device *dev, struct device_attribute *attr, | 607 | static ssize_t store_pch_mac(struct device *dev, struct device_attribute *attr, |