aboutsummaryrefslogtreecommitdiffstats
path: root/net/decnet
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-07-10 03:52:56 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-11 01:40:06 -0400
commit794785bf12d5d6ad7f557d78d203bb0bbfcd8da2 (patch)
treef3f869abc60b3bec84528bdf9a84d73824037dae /net/decnet
parent51c5d0c4b169bf762f09e0d5b283a7f0b2a45739 (diff)
net: Don't report route RTT metric value in cache dumps.
We don't maintain it dynamically any longer, so reporting it would be extremely misleading. Report zero instead. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet')
-rw-r--r--net/decnet/dn_route.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c
index 6e74b3f110bc..707027fae8ab 100644
--- a/net/decnet/dn_route.c
+++ b/net/decnet/dn_route.c
@@ -1812,12 +1812,11 @@ static int dn_rt_cache_seq_show(struct seq_file *seq, void *v)
1812 char buf1[DN_ASCBUF_LEN], buf2[DN_ASCBUF_LEN]; 1812 char buf1[DN_ASCBUF_LEN], buf2[DN_ASCBUF_LEN];
1813 1813
1814 seq_printf(seq, "%-8s %-7s %-7s %04d %04d %04d\n", 1814 seq_printf(seq, "%-8s %-7s %-7s %04d %04d %04d\n",
1815 rt->dst.dev ? rt->dst.dev->name : "*", 1815 rt->dst.dev ? rt->dst.dev->name : "*",
1816 dn_addr2asc(le16_to_cpu(rt->rt_daddr), buf1), 1816 dn_addr2asc(le16_to_cpu(rt->rt_daddr), buf1),
1817 dn_addr2asc(le16_to_cpu(rt->rt_saddr), buf2), 1817 dn_addr2asc(le16_to_cpu(rt->rt_saddr), buf2),
1818 atomic_read(&rt->dst.__refcnt), 1818 atomic_read(&rt->dst.__refcnt),
1819 rt->dst.__use, 1819 rt->dst.__use, 0);
1820 (int) dst_metric(&rt->dst, RTAX_RTT));
1821 return 0; 1820 return 0;
1822} 1821}
1823 1822