From: Jakub Kicinski Date: Fri, 26 Jan 2018 19:30:35 +0000 (-0800) Subject: ip: address: fix stats64 JSON object name X-Git-Tag: v4.15.0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f536df7f30f340eed7c4e3c9fee6c8c1f6d8daa;p=thirdparty%2Fiproute2.git ip: address: fix stats64 JSON object name The JSON object name for statistics in ip link show is "stats644". Looks like a typo, commit d0e720111aad ("ip: ipaddress.c: add support for json output") contains an example with the expected "stats64" name. The fact that no one has noticed until now is probably an indication that no one is using this object. Hopefully it's not too late to fix this, although IIUC this has already been in 4.13 and 4.14 releases :S Fixes: d0e720111aad ("ip: ipaddress.c: add support for json output") Signed-off-by: Jakub Kicinski Signed-off-by: Stephen Hemminger --- diff --git a/ip/ipaddress.c b/ip/ipaddress.c index c41e24b50..1601264a9 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -598,7 +598,7 @@ static void print_link_stats64(FILE *fp, const struct rtnl_link_stats64 *s, const struct rtattr *carrier_changes) { if (is_json_context()) { - open_json_object("stats644"); + open_json_object("stats64"); /* RX stats */ open_json_object("rx");