USB: gadget: Replace %pK with %p
commit 5f8f42688e
("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>
This commit is contained in:
parent
f44d9e364a
commit
9f58f6a781
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue