summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHemant Kumar <hemantk@codeaurora.org>2017-02-15 16:10:57 -0800
committerHemant Kumar <hemantk@codeaurora.org>2017-02-16 18:37:47 -0800
commit9f58f6a78183ea2b8928db62e2edbdea0f51a2f9 (patch)
tree708b400f3d44fbc7b16438ae64072807c50df9bc
parentf44d9e364a517b521ea9081af73e85e78289c0dd (diff)
USB: gadget: Replace %pK with %p
commit 5f8f42688e30e ("usb: gadget: replace %p with %pK") modifies the %pM/m (MAC address format specifier) as %pKM/m in get_ether_addr_str() API. As a result this API returns zeroed out mac address. This API is used to show mac address of usb network interface using configfs attribute of function drivers. Hence replace %pK with %p in this helper API to show correct mac address information. Change-Id: Id3a0d779f458d2ce697cd8fe88f348380cf44a8f Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
-rw-r--r--drivers/usb/gadget/function/u_ether.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/u_ether.c b/drivers/usb/gadget/function/u_ether.c
index 7244dc9419f3..81ce22e91883 100644
--- a/drivers/usb/gadget/function/u_ether.c
+++ b/drivers/usb/gadget/function/u_ether.c
@@ -889,7 +889,7 @@ static int get_ether_addr_str(u8 dev_addr[ETH_ALEN], char *str, int len)
if (len < 18)
return -EINVAL;
- snprintf(str, len, "%pKM", dev_addr);
+ snprintf(str, len, "%pM", dev_addr);
return 18;
}