diff options
author | rwatson <rwatson@FreeBSD.org> | 2014-07-19 15:09:53 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2014-07-19 15:09:53 +0000 |
commit | ed03f0e596e1655c8af3bb0c96c83a6f4775cecf (patch) | |
tree | e620c06d72f7c3ad60f0a28d143bb1d6ff36cfae /usr.bin | |
parent | 582721cdc6d0709a9b4fe296e0461b73ef85b920 (diff) | |
download | FreeBSD-src-ed03f0e596e1655c8af3bb0c96c83a6f4775cecf.zip FreeBSD-src-ed03f0e596e1655c8af3bb0c96c83a6f4775cecf.tar.gz |
Better align headers and data for 'procstat -f' with and without '-C'.
MFC after: 3 days
Sponsored by: DARPA, AFRL
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/procstat/procstat_files.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/procstat/procstat_files.c b/usr.bin/procstat/procstat_files.c index c88065f..85c51f3 100644 --- a/usr.bin/procstat/procstat_files.c +++ b/usr.bin/procstat/procstat_files.c @@ -317,12 +317,12 @@ procstat_files(struct procstat *procstat, struct kinfo_proc *kipp) 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, struct kinfo_proc *kipp) 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); |