summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pstat/pstat.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-01-22 10:57:22 +0000
committerdillon <dillon@FreeBSD.org>1999-01-22 10:57:22 +0000
commit949fa00feafea48a508e5aa749f4bc5154ecded3 (patch)
tree110f1f4613f9be011e86f843b4762c71ddc2c455 /usr.sbin/pstat/pstat.c
parent34551cfe0574d8c2ec189c32e802397f0addef59 (diff)
downloadFreeBSD-src-949fa00feafea48a508e5aa749f4bc5154ecded3.zip
FreeBSD-src-949fa00feafea48a508e5aa749f4bc5154ecded3.tar.gz
Fix formatting bug with [NFS swap] vs /dev/DEVNAME
Diffstat (limited to 'usr.sbin/pstat/pstat.c')
-rw-r--r--usr.sbin/pstat/pstat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index 5d686d9..a01f29f 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)pstat.c 8.16 (Berkeley) 5/9/95";
#endif
static const char rcsid[] =
- "$Id: pstat.c,v 1.38 1999/01/21 08:08:55 dillon Exp $";
+ "$Id: pstat.c,v 1.39 1999/01/22 10:36:48 dillon Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -1043,7 +1043,7 @@ swapmode(void)
kd,
kswap,
sizeof(kswap)/sizeof(kswap[0]),
- (swapflag > 1) ? SWIF_DUMP_TREE : 0
+ ((swapflag > 1) ? SWIF_DUMP_TREE : 0) | SWIF_DEV_PREFIX
);
#define CONVERT(v) ((int)((quad_t)(v) * pagesize / blocksize))
@@ -1056,7 +1056,7 @@ swapmode(void)
for (i = 0; i < n; ++i) {
(void)printf(
- "/dev/%-6s %*d ",
+ "%-11s %*d ",
kswap[i].ksw_devname,
hlen,
CONVERT(kswap[i].ksw_total)
OpenPOWER on IntegriCloud