diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-10-29 15:50:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-29 15:50:24 -0400 |
commit | 4b7a4274ca63dadd9c4f17fc953f3a5d19855c4c (patch) | |
tree | 946d6cef596756a95afe0cea51f5c3c9be4c3353 /net/ipv6/route.c | |
parent | 4aa996066ffc0dba24036c961ee38dfdfbfc061c (diff) |
net: replace %#p6 format specifier with %pi6
gcc warns when using the # modifier with the %p format specifier,
so we can't use this to omit the colons when needed, introduces
%pi6 instead.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r-- | net/ipv6/route.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 720bfedd3185..d69fa462d3f0 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -2408,16 +2408,16 @@ static int rt6_info_route(struct rt6_info *rt, void *p_arg) | |||
2408 | { | 2408 | { |
2409 | struct seq_file *m = p_arg; | 2409 | struct seq_file *m = p_arg; |
2410 | 2410 | ||
2411 | seq_printf(m, "%#p6 %02x ", &rt->rt6i_dst.addr, rt->rt6i_dst.plen); | 2411 | seq_printf(m, "%pi6 %02x ", &rt->rt6i_dst.addr, rt->rt6i_dst.plen); |
2412 | 2412 | ||
2413 | #ifdef CONFIG_IPV6_SUBTREES | 2413 | #ifdef CONFIG_IPV6_SUBTREES |
2414 | seq_printf(m, "%#p6 %02x ", &rt->rt6i_src.addr, rt->rt6i_src.plen); | 2414 | seq_printf(m, "%pi6 %02x ", &rt->rt6i_src.addr, rt->rt6i_src.plen); |
2415 | #else | 2415 | #else |
2416 | seq_puts(m, "00000000000000000000000000000000 00 "); | 2416 | seq_puts(m, "00000000000000000000000000000000 00 "); |
2417 | #endif | 2417 | #endif |
2418 | 2418 | ||
2419 | if (rt->rt6i_nexthop) { | 2419 | if (rt->rt6i_nexthop) { |
2420 | seq_printf(m, "%#p6", rt->rt6i_nexthop->primary_key); | 2420 | seq_printf(m, "%pi6", rt->rt6i_nexthop->primary_key); |
2421 | } else { | 2421 | } else { |
2422 | seq_puts(m, "00000000000000000000000000000000"); | 2422 | seq_puts(m, "00000000000000000000000000000000"); |
2423 | } | 2423 | } |