summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pstat
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1999-11-27 17:03:07 +0000
committercharnier <charnier@FreeBSD.org>1999-11-27 17:03:07 +0000
commitf0ff569fe443d594f2727acf5958c48b228f1ec4 (patch)
tree09183132323ee84743fb31c8772505a947ff6128 /usr.sbin/pstat
parentf0a54e207a2033aa746034fbc6711daa1dcd1ef5 (diff)
downloadFreeBSD-src-f0ff569fe443d594f2727acf5958c48b228f1ec4.zip
FreeBSD-src-f0ff569fe443d594f2727acf5958c48b228f1ec4.tar.gz
Merge fprintf and exit into errx.
Use .Ev for environment variable.
Diffstat (limited to 'usr.sbin/pstat')
-rw-r--r--usr.sbin/pstat/pstat.87
-rw-r--r--usr.sbin/pstat/pstat.c3
2 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/pstat/pstat.8 b/usr.sbin/pstat/pstat.8
index 1821d6a..939d922 100644
--- a/usr.sbin/pstat/pstat.8
+++ b/usr.sbin/pstat/pstat.8
@@ -77,7 +77,8 @@ The following options are available:
.It Fl n
Print devices out by major/minor instead of name.
.It Fl k
-Print sizes in kilobytes, regardless of the setting of the BLOCKSIZE
+Print sizes in kilobytes, regardless of the setting of the
+.Ev BLOCKSIZE
environment variable.
.It Fl T
Print the number of used and free slots in the several system tables
@@ -382,7 +383,9 @@ default source of tables
.Ra K. Thompson
.Re
.Sh BUGS
-Does not understand NFS swap servers.
+Does not understand
+.Tn NFS
+swap servers.
.Sh HISTORY
The
.Nm pstat
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index 24fb157..e506d30 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -270,8 +270,7 @@ main(argc, argv)
break;
case 'v':
case 'i': /* Backward compatibility. */
- fprintf(stderr, "vnode mode not supported\n");
- exit(1);
+ errx(1, "vnode mode not supported");
#if 0
vnodeflag = 1;
break;
OpenPOWER on IntegriCloud