IPVS: Add debug macros for v4 and v6 address output
authorJulius Volz <juliusv@google.com>
Tue, 2 Sep 2008 13:55:35 +0000 (15:55 +0200)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Sep 2008 01:17:04 +0000 (11:17 +1000)
commitc842a3ada9ba8f0cca38a70de3fe0effcfab254c
treebbd46b4eb6918a6983794432d00eb14d8b1cc3ee
parent64aae3cb9fd22f33e491c4730d363eb2229ef910
IPVS: Add debug macros for v4 and v6 address output

Add some debugging macros that allow conditional output of either v4 or v6
addresses, depending on an 'af' parameter. This is done by creating a
temporary string buffer in an outer debug macro and writing addresses'
string representations into it from another macro which can only be used
when inside the outer one.

Signed-off-by: Julius Volz <juliusv@google.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
include/net/ip_vs.h