X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Fuwb%2Faddress.c;h=8739c4f4d015a3cac54ed8881f660eb954ebd6f1;hb=f72e284b22ee9add12e8b02aa0de0d8c90ee0c3a;hp=973321327c44b897ae3ae14eb95f2d33b784732f;hpb=68e9e2752ad9f5838e4dbadae3ad166656ab2e83;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/uwb/address.c b/drivers/uwb/address.c index 973321327c44..8739c4f4d015 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]);