svn commit: r268879 - head/usr.bin/procstat
Robert Watson
rwatson at FreeBSD.org
Sat Jul 19 15:09:53 UTC 2014
Author: rwatson
Date: Sat Jul 19 15:09:53 2014
New Revision: 268879
URL: http://svnweb.freebsd.org/changeset/base/268879
Log:
Better align headers and data for 'procstat -f' with and without '-C'.
MFC after: 3 days
Sponsored by: DARPA, AFRL
Modified:
head/usr.bin/procstat/procstat_files.c
Modified: head/usr.bin/procstat/procstat_files.c
==============================================================================
--- head/usr.bin/procstat/procstat_files.c Sat Jul 19 14:34:06 2014 (r268878)
+++ head/usr.bin/procstat/procstat_files.c Sat Jul 19 15:09:53 2014 (r268879)
@@ -317,12 +317,12 @@ procstat_files(struct procstat *procstat
if (!hflag) {
if (Cflag)
- printf("%5s %-16s %4s %1s %-9s %-*s "
+ printf("%5s %-16s %5s %1s %-8s %-*s "
"%-3s %-12s\n", "PID", "COMM", "FD", "T",
"FLAGS", capwidth, "CAPABILITIES", "PRO",
"NAME");
else
- printf("%5s %-16s %4s %1s %1s %-9s "
+ printf("%5s %-16s %5s %1s %1s %-8s "
"%3s %7s %-3s %-12s\n", "PID", "COMM", "FD", "T",
"V", "FLAGS", "REF", "OFFSET", "PRO", "NAME");
}
@@ -450,6 +450,7 @@ procstat_files(struct procstat *procstat
printf("%s", fst->fs_fflags & PS_FST_FFLAG_NONBLOCK ? "n" : "-");
printf("%s", fst->fs_fflags & PS_FST_FFLAG_DIRECT ? "d" : "-");
printf("%s", fst->fs_fflags & PS_FST_FFLAG_HASLOCK ? "l" : "-");
+ printf(" ");
if (!Cflag) {
if (fst->fs_ref_count > -1)
printf("%3d ", fst->fs_ref_count);
More information about the svn-src-all
mailing list