projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd7d7fe
)
pch_phub: use kernel's '%pM' format option to print MAC
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Mon, 18 Jul 2011 08:22:06 +0000
(11:22 +0300)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 23 Aug 2011 00:54:59 +0000
(17:54 -0700)
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>
drivers/misc/pch_phub.c
patch
|
blob
|
history
diff --git
a/drivers/misc/pch_phub.c
b/drivers/misc/pch_phub.c
index
61ece53
..
dee33ad
100644
(file)
--- 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,
pch_phub_read_gbe_mac_addr(chip, mac);
- return sprintf(buf, "%02x:%02x:%02x:%02x:%02x:%02x\n",
- mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
+ return sprintf(buf, "%pM\n", mac);
}
static ssize_t store_pch_mac(struct device *dev, struct device_attribute *attr,