mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
drivers: replace NIPQUAD()
Using NIPQUAD() with NIPQUAD_FMT, %d.%d.%d.%d or %u.%u.%u.%u can be replaced with %pI4 Signed-off-by: Harvey Harrison <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
21454aaad3
commit
63779436ab
8 changed files with 42 additions and 50 deletions
|
|
@ -284,8 +284,7 @@ static ssize_t sprintf_ipaddr(char *buf, u8 *ip)
|
|||
/*
|
||||
* IPV4
|
||||
*/
|
||||
str += sprintf(buf, NIPQUAD_FMT, ip[12],
|
||||
ip[13], ip[14], ip[15]);
|
||||
str += sprintf(buf, "%pI4", ip + 12);
|
||||
} else {
|
||||
/*
|
||||
* IPv6
|
||||
|
|
|
|||
Loading…
Reference in a new issue