Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111649026
D35725.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D35725.diff
View Options
diff --git a/usr.bin/sockstat/sockstat.c b/usr.bin/sockstat/sockstat.c
--- a/usr.bin/sockstat/sockstat.c
+++ b/usr.bin/sockstat/sockstat.c
@@ -1071,7 +1071,7 @@
struct addr *laddr, *faddr;
struct sock *s_tmp;
- while (pos < 29)
+ while (pos < 30)
pos += xprintf(" ");
pos += xprintf("%s", s->protoname);
if (s->vflag & INP_IPV4)
@@ -1084,7 +1084,7 @@
faddr = s->faddr;
first = 1;
while (laddr != NULL || faddr != NULL) {
- offset = 36;
+ offset = 37;
while (pos < offset)
pos += xprintf(" ");
switch (s->family) {
@@ -1233,7 +1233,7 @@
int n, pos;
if (opt_q != 1) {
- printf("%-8s %-10s %-5s %-2s %-6s %-*s %-*s",
+ printf("%-8s %-10s %-5s %-3s %-6s %-*s %-*s",
"USER", "COMMAND", "PID", "FD", "PROTO",
opt_w ? 45 : 21, "LOCAL ADDRESS",
opt_w ? 45 : 21, "FOREIGN ADDRESS");
@@ -1276,7 +1276,7 @@
pos += xprintf("%lu ", (u_long)xf->xf_pid);
while (pos < 26)
pos += xprintf(" ");
- pos += xprintf("%d ", xf->xf_fd);
+ pos += xprintf("%-3d ", xf->xf_fd);
displaysock(s, pos);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 7, 12:18 PM (20 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17031888
Default Alt Text
D35725.diff (1 KB)
Attached To
Mode
D35725: sockstat(1): widen the FD printing format
Attached
Detach File
Event Timeline
Log In to Comment