Skip to content

Commit

Permalink
pch_phub: use kernel's '%pM' format option to print MAC
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Shevchenko <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
andy-shev authored and gregkh committed Aug 23, 2011
1 parent dd7d7fe commit 25b8a88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/misc/pch_phub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 25b8a88

Please sign in to comment.