summaryrefslogtreecommitdiffstats
path: root/drivers/uwb/address.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andy.shevchenko@gmail.com>2010-09-13 11:24:52 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-22 10:21:40 -0700
commitd3134c3b1a5d2a9dca2ddacacb5d08fad7941d8c (patch)
tree36ca383baf8dcd55eda8632ca1e0f09b0ba877f7 /drivers/uwb/address.c
parentecfa153ef616b901e86d9a051b329fcda7a6ce7b (diff)
downloadop-kernel-dev-d3134c3b1a5d2a9dca2ddacacb5d08fad7941d8c.zip
op-kernel-dev-d3134c3b1a5d2a9dca2ddacacb5d08fad7941d8c.tar.gz
uwb: use '%pM' format to print MAC address
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com> Cc: David Vrabel <david.vrabel@csr.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/uwb/address.c')
-rw-r--r--drivers/uwb/address.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/uwb/address.c b/drivers/uwb/address.c
index 9733213..8739c4f 100644
--- a/drivers/uwb/address.c
+++ b/drivers/uwb/address.c
@@ -363,10 +363,7 @@ size_t __uwb_addr_print(char *buf, size_t buf_size, const unsigned char *addr,
{
size_t result;
if (type)
- result = scnprintf(buf, buf_size,
- "%02x:%02x:%02x:%02x:%02x:%02x",
- addr[0], addr[1], addr[2],
- addr[3], addr[4], addr[5]);
+ result = scnprintf(buf, buf_size, "%pM", addr);
else
result = scnprintf(buf, buf_size, "%02x:%02x",
addr[1], addr[0]);
OpenPOWER on IntegriCloud