summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2009-01-30 14:28:50 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2009-01-30 14:28:50 +0000
commit1ccdc84fddb72e8b0207d2b2a5bd5559d0c84b4f (patch)
treef5b1b2ac4b5c99539af2c57b715e14a0cbbe7e9d
parent9b7076d1cee099d89be20de69ac6a0e5349db4fc (diff)
Notes
-rw-r--r--usr.bin/sockstat/sockstat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/sockstat/sockstat.c b/usr.bin/sockstat/sockstat.c
index 627c9588dcc7..2cc3de29a325 100644
--- a/usr.bin/sockstat/sockstat.c
+++ b/usr.bin/sockstat/sockstat.c
@@ -596,25 +596,25 @@ display(void)
continue;
pos = 0;
if ((pwd = getpwuid(xf->xf_uid)) == NULL)
- pos += xprintf("%lu", (u_long)xf->xf_uid);
+ pos += xprintf("%lu ", (u_long)xf->xf_uid);
else
- pos += xprintf("%s", pwd->pw_name);
+ pos += xprintf("%s ", pwd->pw_name);
while (pos < 9)
pos += xprintf(" ");
pos += xprintf("%.10s", getprocname(xf->xf_pid));
while (pos < 20)
pos += xprintf(" ");
- pos += xprintf("%lu", (u_long)xf->xf_pid);
+ pos += xprintf("%lu ", (u_long)xf->xf_pid);
while (pos < 26)
pos += xprintf(" ");
- pos += xprintf("%d", xf->xf_fd);
+ pos += xprintf("%d ", xf->xf_fd);
while (pos < 29)
pos += xprintf(" ");
pos += xprintf("%s", s->protoname);
if (s->vflag & INP_IPV4)
- pos += xprintf("4");
+ pos += xprintf("4 ");
if (s->vflag & INP_IPV6)
- pos += xprintf("6");
+ pos += xprintf("6 ");
while (pos < 36)
pos += xprintf(" ");
switch (s->family) {