svn commit: r254485 - head/usr.bin/procstat
Pawel Jakub Dawidek
pjd at FreeBSD.org
Sun Aug 18 10:44:38 UTC 2013
Author: pjd
Date: Sun Aug 18 10:44:37 2013
New Revision: 254485
URL: http://svnweb.freebsd.org/changeset/base/254485
Log:
Make the "FD" column one character wider, so that "trace" can also align
properly.
Modified:
head/usr.bin/procstat/procstat_files.c
Modified: head/usr.bin/procstat/procstat_files.c
==============================================================================
--- head/usr.bin/procstat/procstat_files.c Sun Aug 18 10:38:59 2013 (r254484)
+++ head/usr.bin/procstat/procstat_files.c Sun Aug 18 10:44:37 2013 (r254485)
@@ -332,19 +332,19 @@ procstat_files(struct procstat *procstat
printf("%5d ", kipp->ki_pid);
printf("%-16s ", kipp->ki_comm);
if (fst->fs_uflags & PS_FST_UFLAG_CTTY)
- printf("ctty ");
+ printf(" ctty ");
else if (fst->fs_uflags & PS_FST_UFLAG_CDIR)
- printf(" cwd ");
+ printf(" cwd ");
else if (fst->fs_uflags & PS_FST_UFLAG_JAIL)
- printf("jail ");
+ printf(" jail ");
else if (fst->fs_uflags & PS_FST_UFLAG_RDIR)
- printf("root ");
+ printf(" root ");
else if (fst->fs_uflags & PS_FST_UFLAG_TEXT)
- printf("text ");
+ printf(" text ");
else if (fst->fs_uflags & PS_FST_UFLAG_TRACE)
printf("trace ");
else
- printf("%4d ", fst->fs_fd);
+ printf("%5d ", fst->fs_fd);
switch (fst->fs_type) {
case PS_FST_TYPE_VNODE:
More information about the svn-src-all
mailing list