If there is no modifier, we should not go down the "longformat" path.
The amount of breakage is somewhat ABI-dependent, but on armv7
pstat -d x ticks
would print stack garbage.
ok?
Index: pstat.c
===================================================================
RCS file: /cvs/src/usr.sbin/pstat/pstat.c,v
retrieving revision 1.110
diff -u -p -r1.110 pstat.c
--- pstat.c 19 Sep 2016 20:10:54 -0000 1.110
+++ pstat.c 22 Oct 2016 20:38:15 -0000
@@ -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