Make the "FD" column one character wider, so that "trace" can also align
properly.
This commit is contained in:
parent
0237ec97ff
commit
f5ffdfc18b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254485
@ -332,19 +332,19 @@ procstat_files(struct procstat *procstat, struct kinfo_proc *kipp)
|
|||||||
printf("%5d ", kipp->ki_pid);
|
printf("%5d ", kipp->ki_pid);
|
||||||
printf("%-16s ", kipp->ki_comm);
|
printf("%-16s ", kipp->ki_comm);
|
||||||
if (fst->fs_uflags & PS_FST_UFLAG_CTTY)
|
if (fst->fs_uflags & PS_FST_UFLAG_CTTY)
|
||||||
printf("ctty ");
|
printf(" ctty ");
|
||||||
else if (fst->fs_uflags & PS_FST_UFLAG_CDIR)
|
else if (fst->fs_uflags & PS_FST_UFLAG_CDIR)
|
||||||
printf(" cwd ");
|
printf(" cwd ");
|
||||||
else if (fst->fs_uflags & PS_FST_UFLAG_JAIL)
|
else if (fst->fs_uflags & PS_FST_UFLAG_JAIL)
|
||||||
printf("jail ");
|
printf(" jail ");
|
||||||
else if (fst->fs_uflags & PS_FST_UFLAG_RDIR)
|
else if (fst->fs_uflags & PS_FST_UFLAG_RDIR)
|
||||||
printf("root ");
|
printf(" root ");
|
||||||
else if (fst->fs_uflags & PS_FST_UFLAG_TEXT)
|
else if (fst->fs_uflags & PS_FST_UFLAG_TEXT)
|
||||||
printf("text ");
|
printf(" text ");
|
||||||
else if (fst->fs_uflags & PS_FST_UFLAG_TRACE)
|
else if (fst->fs_uflags & PS_FST_UFLAG_TRACE)
|
||||||
printf("trace ");
|
printf("trace ");
|
||||||
else
|
else
|
||||||
printf("%4d ", fst->fs_fd);
|
printf("%5d ", fst->fs_fd);
|
||||||
|
|
||||||
switch (fst->fs_type) {
|
switch (fst->fs_type) {
|
||||||
case PS_FST_TYPE_VNODE:
|
case PS_FST_TYPE_VNODE:
|
||||||
|
Loading…
Reference in New Issue
Block a user