diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 1394ddb..a532dda 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -2434,7 +2434,8 @@ static int ip6_route_dev_notify(struct notifier_block *this, #ifdef CONFIG_PROC_FS -#define RT6_INFO_LEN (32 + 4 + 32 + 4 + 32 + 40 + 5 + 1) +#define RT6_INFO_LEN (32 + 4 + 32 + 4 + 32 + 48 + 5 + 1) +#define RT6_VAL_TO_STR(s) #s struct rt6_proc_arg { @@ -2462,7 +2463,8 @@ static int rt6_info_route(struct rt6_info *rt, void *p_arg) } else { seq_puts(m, "00000000000000000000000000000000"); } - seq_printf(m, " %08x %08x %08x %08x %8s\n", + seq_printf(m, " %08x %08x %08x %08x %" + RT6_VAL_TO_STR(IFNAMSIZ) "s\n", rt->rt6i_metric, atomic_read(&rt->u.dst.__refcnt), rt->u.dst.__use, rt->rt6i_flags, rt->rt6i_dev ? rt->rt6i_dev->name : "");