printk: add %I4, %I6, %i4, %i6 format specifiers
authorHarvey Harrison <harvey.harrison@gmail.com>
Wed, 29 Oct 2008 19:49:58 +0000 (12:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Oct 2008 19:49:58 +0000 (12:49 -0700)
commit4aa996066ffc0dba24036c961ee38dfdfbfc061c
tree61af96e4806e71048b981936b54abdb5506e950a
parent96631ed16c514cf8b28fab991a076985ce378c26
printk: add %I4, %I6, %i4, %i6 format specifiers

For use in printing IPv4, or IPv6 addresses in the usual way:

%i4 and %I4 are currently equivalent and print the address in
dot-separated decimal x.x.x.x

%I6 prints 16-bit network order hex with colon separators:
xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx

%i6 omits the colons.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/vsprintf.c