net: replace uses of NIP6_FMT with %p6
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
38ff4fa49b
commit
0c6ce78abf
@@ -87,8 +87,8 @@ static inline const char *ip_vs_dbg_addr(int af, char *buf, size_t buf_len,
|
||||
int len;
|
||||
#ifdef CONFIG_IP_VS_IPV6
|
||||
if (af == AF_INET6)
|
||||
len = snprintf(&buf[*idx], buf_len - *idx, "[" NIP6_FMT "]",
|
||||
NIP6(addr->in6)) + 1;
|
||||
len = snprintf(&buf[*idx], buf_len - *idx, "[%p6]",
|
||||
&addr->in6) + 1;
|
||||
else
|
||||
#endif
|
||||
len = snprintf(&buf[*idx], buf_len - *idx, NIPQUAD_FMT,
|
||||
|
@@ -122,10 +122,10 @@ static inline void nf_ct_dump_tuple_ip(const struct nf_conntrack_tuple *t)
|
||||
static inline void nf_ct_dump_tuple_ipv6(const struct nf_conntrack_tuple *t)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
printk("tuple %p: %u " NIP6_FMT " %hu -> " NIP6_FMT " %hu\n",
|
||||
printk("tuple %p: %u %p6 %hu -> %p6 %hu\n",
|
||||
t, t->dst.protonum,
|
||||
NIP6(*(struct in6_addr *)t->src.u3.all), ntohs(t->src.u.all),
|
||||
NIP6(*(struct in6_addr *)t->dst.u3.all), ntohs(t->dst.u.all));
|
||||
t->src.u3.all, ntohs(t->src.u.all),
|
||||
t->dst.u3.all, ntohs(t->dst.u.all));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@@ -285,9 +285,9 @@ extern int sctp_debug_flag;
|
||||
if (sctp_debug_flag) { \
|
||||
if (saddr->sa.sa_family == AF_INET6) { \
|
||||
printk(KERN_DEBUG \
|
||||
lead NIP6_FMT trail, \
|
||||
lead "%p6" trail, \
|
||||
leadparm, \
|
||||
NIP6(saddr->v6.sin6_addr), \
|
||||
&saddr->v6.sin6_addr, \
|
||||
otherparms); \
|
||||
} else { \
|
||||
printk(KERN_DEBUG \
|
||||
|
Reference in New Issue
Block a user