summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pstat
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-07-04 22:53:19 +0000
committerdd <dd@FreeBSD.org>2001-07-04 22:53:19 +0000
commit816462428e8deb909bdef766e8e0a2b1f2565133 (patch)
treec737a2aa5a5b5aff0228dfdcf65e367803fc3ff7 /usr.sbin/pstat
parent7d47b95265432e1c42e4bfe4943f3d2ab0eaa4d8 (diff)
downloadFreeBSD-src-816462428e8deb909bdef766e8e0a2b1f2565133.zip
FreeBSD-src-816462428e8deb909bdef766e8e0a2b1f2565133.tar.gz
Make the '-tn' flag combination print the major/minor numbers of the
line as documented intead of a full column of 0's.
Diffstat (limited to 'usr.sbin/pstat')
-rw-r--r--usr.sbin/pstat/pstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index 1a6efb1..380464f 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -856,7 +856,7 @@ ttyprt(tp, line)
if (usenumflag || tp->t_dev == 0 ||
(name = devname(tp->t_dev, S_IFCHR)) == NULL)
- (void)printf("%7d ", line);
+ (void)printf(" %2d,%-2d", major(tp->t_dev), minor(tp->t_dev));
else
(void)printf("%7s ", name);
(void)printf("%2d %3d ", tp->t_rawq.c_cc, tp->t_canq.c_cc);
OpenPOWER on IntegriCloud