mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
net: replace all current users of NIP6_SEQFMT with %#p6
The define in kernel.h can be done away with at a later time. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
689afa7da1
commit
b071195deb
7 changed files with 18 additions and 26 deletions
|
@ -124,8 +124,7 @@ cifs_get_spnego_key(struct cifsSesInfo *sesInfo)
|
||||||
sprintf(dp, "ip4=" NIPQUAD_FMT,
|
sprintf(dp, "ip4=" NIPQUAD_FMT,
|
||||||
NIPQUAD(server->addr.sockAddr.sin_addr));
|
NIPQUAD(server->addr.sockAddr.sin_addr));
|
||||||
else if (server->addr.sockAddr.sin_family == AF_INET6)
|
else if (server->addr.sockAddr.sin_family == AF_INET6)
|
||||||
sprintf(dp, "ip6=" NIP6_SEQFMT,
|
sprintf(dp, "ip6=%#p6", &server->addr.sockAddr6.sin6_addr);
|
||||||
NIP6(server->addr.sockAddr6.sin6_addr));
|
|
||||||
else
|
else
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
|
|
@ -2986,9 +2986,8 @@ static void if6_seq_stop(struct seq_file *seq, void *v)
|
||||||
static int if6_seq_show(struct seq_file *seq, void *v)
|
static int if6_seq_show(struct seq_file *seq, void *v)
|
||||||
{
|
{
|
||||||
struct inet6_ifaddr *ifp = (struct inet6_ifaddr *)v;
|
struct inet6_ifaddr *ifp = (struct inet6_ifaddr *)v;
|
||||||
seq_printf(seq,
|
seq_printf(seq, "%#p6 %02x %02x %02x %02x %8s\n",
|
||||||
NIP6_SEQFMT " %02x %02x %02x %02x %8s\n",
|
&ifp->addr,
|
||||||
NIP6(ifp->addr),
|
|
||||||
ifp->idev->dev->ifindex,
|
ifp->idev->dev->ifindex,
|
||||||
ifp->prefix_len,
|
ifp->prefix_len,
|
||||||
ifp->scope,
|
ifp->scope,
|
||||||
|
|
|
@ -512,11 +512,9 @@ static int ac6_seq_show(struct seq_file *seq, void *v)
|
||||||
struct ifacaddr6 *im = (struct ifacaddr6 *)v;
|
struct ifacaddr6 *im = (struct ifacaddr6 *)v;
|
||||||
struct ac6_iter_state *state = ac6_seq_private(seq);
|
struct ac6_iter_state *state = ac6_seq_private(seq);
|
||||||
|
|
||||||
seq_printf(seq,
|
seq_printf(seq, "%-4d %-15s %#p6 %5d\n",
|
||||||
"%-4d %-15s " NIP6_SEQFMT " %5d\n",
|
|
||||||
state->dev->ifindex, state->dev->name,
|
state->dev->ifindex, state->dev->name,
|
||||||
NIP6(im->aca_addr),
|
&im->aca_addr, im->aca_users);
|
||||||
im->aca_users);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -696,14 +696,14 @@ static int ip6fl_seq_show(struct seq_file *seq, void *v)
|
||||||
else {
|
else {
|
||||||
struct ip6_flowlabel *fl = v;
|
struct ip6_flowlabel *fl = v;
|
||||||
seq_printf(seq,
|
seq_printf(seq,
|
||||||
"%05X %-1d %-6d %-6d %-6ld %-8ld " NIP6_SEQFMT " %-4d\n",
|
"%05X %-1d %-6d %-6d %-6ld %-8ld %#p6 %-4d\n",
|
||||||
(unsigned)ntohl(fl->label),
|
(unsigned)ntohl(fl->label),
|
||||||
fl->share,
|
fl->share,
|
||||||
(unsigned)fl->owner,
|
(unsigned)fl->owner,
|
||||||
atomic_read(&fl->users),
|
atomic_read(&fl->users),
|
||||||
fl->linger/HZ,
|
fl->linger/HZ,
|
||||||
(long)(fl->expires - jiffies)/HZ,
|
(long)(fl->expires - jiffies)/HZ,
|
||||||
NIP6(fl->dst),
|
&fl->dst,
|
||||||
fl->opt ? fl->opt->opt_nflen : 0);
|
fl->opt ? fl->opt->opt_nflen : 0);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -2430,9 +2430,9 @@ static int igmp6_mc_seq_show(struct seq_file *seq, void *v)
|
||||||
struct igmp6_mc_iter_state *state = igmp6_mc_seq_private(seq);
|
struct igmp6_mc_iter_state *state = igmp6_mc_seq_private(seq);
|
||||||
|
|
||||||
seq_printf(seq,
|
seq_printf(seq,
|
||||||
"%-4d %-15s " NIP6_SEQFMT " %5d %08X %ld\n",
|
"%-4d %-15s %#p6 %5d %08X %ld\n",
|
||||||
state->dev->ifindex, state->dev->name,
|
state->dev->ifindex, state->dev->name,
|
||||||
NIP6(im->mca_addr),
|
&im->mca_addr,
|
||||||
im->mca_users, im->mca_flags,
|
im->mca_users, im->mca_flags,
|
||||||
(im->mca_flags&MAF_TIMER_RUNNING) ?
|
(im->mca_flags&MAF_TIMER_RUNNING) ?
|
||||||
jiffies_to_clock_t(im->mca_timer.expires-jiffies) : 0);
|
jiffies_to_clock_t(im->mca_timer.expires-jiffies) : 0);
|
||||||
|
@ -2591,10 +2591,10 @@ static int igmp6_mcf_seq_show(struct seq_file *seq, void *v)
|
||||||
"Source Address", "INC", "EXC");
|
"Source Address", "INC", "EXC");
|
||||||
} else {
|
} else {
|
||||||
seq_printf(seq,
|
seq_printf(seq,
|
||||||
"%3d %6.6s " NIP6_SEQFMT " " NIP6_SEQFMT " %6lu %6lu\n",
|
"%3d %6.6s %#p6 %#p6 %6lu %6lu\n",
|
||||||
state->dev->ifindex, state->dev->name,
|
state->dev->ifindex, state->dev->name,
|
||||||
NIP6(state->im->mca_addr),
|
&state->im->mca_addr,
|
||||||
NIP6(psf->sf_addr),
|
&psf->sf_addr,
|
||||||
psf->sf_count[MCAST_INCLUDE],
|
psf->sf_count[MCAST_INCLUDE],
|
||||||
psf->sf_count[MCAST_EXCLUDE]);
|
psf->sf_count[MCAST_EXCLUDE]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2408,19 +2408,16 @@ static int rt6_info_route(struct rt6_info *rt, void *p_arg)
|
||||||
{
|
{
|
||||||
struct seq_file *m = p_arg;
|
struct seq_file *m = p_arg;
|
||||||
|
|
||||||
seq_printf(m, NIP6_SEQFMT " %02x ", NIP6(rt->rt6i_dst.addr),
|
seq_printf(m, "%#p6 %02x ", &rt->rt6i_dst.addr, rt->rt6i_dst.plen);
|
||||||
rt->rt6i_dst.plen);
|
|
||||||
|
|
||||||
#ifdef CONFIG_IPV6_SUBTREES
|
#ifdef CONFIG_IPV6_SUBTREES
|
||||||
seq_printf(m, NIP6_SEQFMT " %02x ", NIP6(rt->rt6i_src.addr),
|
seq_printf(m, "%#p6 %02x ", &rt->rt6i_src.addr, rt->rt6i_src.plen);
|
||||||
rt->rt6i_src.plen);
|
|
||||||
#else
|
#else
|
||||||
seq_puts(m, "00000000000000000000000000000000 00 ");
|
seq_puts(m, "00000000000000000000000000000000 00 ");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (rt->rt6i_nexthop) {
|
if (rt->rt6i_nexthop) {
|
||||||
seq_printf(m, NIP6_SEQFMT,
|
seq_printf(m, "%#p6", rt->rt6i_nexthop->primary_key);
|
||||||
NIP6(*((struct in6_addr *)rt->rt6i_nexthop->primary_key)));
|
|
||||||
} else {
|
} else {
|
||||||
seq_puts(m, "00000000000000000000000000000000");
|
seq_puts(m, "00000000000000000000000000000000");
|
||||||
}
|
}
|
||||||
|
|
|
@ -365,10 +365,9 @@ static void xs_format_ipv6_peer_addresses(struct rpc_xprt *xprt,
|
||||||
xprt->address_strings[RPC_DISPLAY_ALL] = buf;
|
xprt->address_strings[RPC_DISPLAY_ALL] = buf;
|
||||||
|
|
||||||
buf = kzalloc(36, GFP_KERNEL);
|
buf = kzalloc(36, GFP_KERNEL);
|
||||||
if (buf) {
|
if (buf)
|
||||||
snprintf(buf, 36, NIP6_SEQFMT,
|
snprintf(buf, 36, "%#p6", &addr->sin6_addr);
|
||||||
NIP6(addr->sin6_addr));
|
|
||||||
}
|
|
||||||
xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = buf;
|
xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = buf;
|
||||||
|
|
||||||
buf = kzalloc(8, GFP_KERNEL);
|
buf = kzalloc(8, GFP_KERNEL);
|
||||||
|
|
Loading…
Reference in a new issue