diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-10-29 00:04:44 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-29 00:04:44 +0100 |
commit | 689afa7da106032a3e859ae35494f80dd6eac640 (patch) | |
tree | 470f00c94ff2f179c6b0405c4726b92a51e7110a /net/ipv6/anycast.c | |
parent | xfrm: Notify changes in UDP encapsulation via netlink (diff) | |
download | linux-689afa7da106032a3e859ae35494f80dd6eac640.tar.xz linux-689afa7da106032a3e859ae35494f80dd6eac640.zip |
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/ipv6/anycast.c')
0 files changed, 0 insertions, 0 deletions