summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2016-10-23 18:14:02 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2016-10-23 18:14:02 +0000
commit10a52c3c3ca455e0bf3a08ec15ebddd64f75318a (patch)
tree488d04b207c59f2ed275d79564e36aa2308a39ec /usr.sbin
parentedae54c4b622d14e54c65600eb1200e64e03586f (diff)
For -d, if there is no modifier, don't go down the "longformat" path.
Fixes cases like "pstat -d x ticks" on armv7. ok jca@, deraadt@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pstat/pstat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index 1c79db35ac0..864d04bd4ca 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pstat.c,v 1.110 2016/09/19 20:10:54 tb Exp $ */
+/* $OpenBSD: pstat.c,v 1.111 2016/10/23 18:14:01 kettenis Exp $ */
/* $NetBSD: pstat.c,v 1.27 1996/10/23 22:50:06 cgd Exp $ */
/*-
@@ -270,7 +270,7 @@ main(int argc, char *argv[])
mask = 0xffff;
else if (strcmp(mod, "hh") == 0)
mask = 0xff;
- else
+ else if (strcmp(mod, "") != 0)
longformat = 1;
} else