svn commit: r290975 - head/usr.bin/netstat

Hajimu UMEMOTO ume at FreeBSD.org
Tue Nov 17 12:09:59 UTC 2015


Author: ume
Date: Tue Nov 17 12:09:57 2015
New Revision: 290975
URL: https://svnweb.freebsd.org/changeset/base/290975

Log:
  JSON doesn't permit a hexadecimal notation of an integer.

Modified:
  head/usr.bin/netstat/if.c

Modified: head/usr.bin/netstat/if.c
==============================================================================
--- head/usr.bin/netstat/if.c	Tue Nov 17 11:26:35 2015	(r290974)
+++ head/usr.bin/netstat/if.c	Tue Nov 17 12:09:57 2015	(r290975)
@@ -358,7 +358,7 @@ intpr(void (*pfunc)(char *), int af)
 		} else
 			xname = name;
 
-		xo_emit("{etk:name/%s}{e:flags/0x%x}{d:/%-*.*s}",
+		xo_emit("{etk:name/%s}{eq:flags/0x%x}{d:/%-*.*s}",
 		    name, ifa->ifa_flags, ifn_len_max, ifn_len_max, xname);
 
 #define IFA_MTU(ifa)	(((struct if_data *)(ifa)->ifa_data)->ifi_mtu)


More information about the svn-src-all mailing list