diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-10-29 02:04:44 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-29 02:04:44 +0300 |
commit | 689afa7da106032a3e859ae35494f80dd6eac640 (patch) | |
tree | 470f00c94ff2f179c6b0405c4726b92a51e7110a /net/sunrpc/xprtsock.c | |
parent | 3a2dfbe8acb154905fdc2fd03ec56df42e6c4cc4 (diff) | |
download | linux-689afa7da106032a3e859ae35494f80dd6eac640.tar.xz |
printk: add %p6 format specifier for IPv6 addresses
Takes a pointer to a IPv6 address and formats it in the usual
colon-separated hex format:
xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx
Each 16 bit word is printed in network-endian byteorder.
%#p6 is also supported and will omit the colons.
%p6 is a replacement for NIP6_FMT and NIP6()
%#p6 is a replacement for NIP6_SEQFMT and NIP6()
Note that NIP6() took a struct in6_addr whereas this takes a pointer
to a struct in6_addr.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sunrpc/xprtsock.c')
0 files changed, 0 insertions, 0 deletions