mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
misc: replace NIP6_FMT with %p6 format specifier
The iscsi_ibft.c changes are almost certainly a bugfix as the pointer 'ip' is a u8 *, so they never print the last 8 bytes of the IPv6 address, and the eight bytes they do print have a zero byte with them in each 16-bit word. Other than that, this should cause no difference in functionality. Signed-off-by: Harvey Harrison <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
b071195deb
commit
1afa67f5e7
5 changed files with 5 additions and 8 deletions
|
|
@ -122,7 +122,7 @@ static void nlm_display_address(const struct sockaddr *sap,
|
|||
snprintf(buf, len, NIPQUAD_FMT,
|
||||
NIPQUAD(sin6->sin6_addr.s6_addr32[3]));
|
||||
else
|
||||
snprintf(buf, len, NIP6_FMT, NIP6(sin6->sin6_addr));
|
||||
snprintf(buf, len, "%p6", &sin6->sin6_addr);
|
||||
break;
|
||||
default:
|
||||
snprintf(buf, len, "unsupported address family");
|
||||
|
|
|
|||
Loading…
Reference in a new issue