aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2016-08-17 16:56:20 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2016-08-17 16:56:20 +0000
commit5ad497eeada28b33e3fcfec1139652184cfdfc8e (patch)
tree5c100f0264f611b6dc46153a4029faa7f62114f1 /usr.bin/netstat
parente0694d2f0afad09c6d7a4191eed9e7cac6425933 (diff)
downloadsrc-5ad497eeada28b33e3fcfec1139652184cfdfc8e.tar.gz
src-5ad497eeada28b33e3fcfec1139652184cfdfc8e.zip
Fix the output for scope statistics.
MFC after: 3 days
Notes
Notes: svn path=/head/; revision=304295
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/inet6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/netstat/inet6.c b/usr.bin/netstat/inet6.c
index 541ca56dec66..d01f690ec6ed 100644
--- a/usr.bin/netstat/inet6.c
+++ b/usr.bin/netstat/inet6.c
@@ -488,8 +488,8 @@ ip6_stats(u_long off, const char *name, int af1 __unused, int proto __unused)
"{N:/global%s}\n");\
break;\
default:\
- xo_emit("\t\t{qke:name/%x}{:count/%ju} " \
- "addresses scope=%x\n",\
+ xo_emit("\t\t{qke:name/%#x}{:count/%ju} " \
+ "{N:/addresses scope=%#x}\n",\
i, (uintmax_t)ip6stat.s, i); \
}\
} while (0);