Handle AT_TIMEKEEP in procstat(1) -x [1]. Remove the AT_COUNT switch

case, since AT_COUNT is not an aux vector, it is the counter of total
number of defined vectors.

PR:	bin/171662 [1]
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2012-09-16 05:52:54 +00:00
parent 7cbda73825
commit 2a43855795
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240546

View File

@ -231,9 +231,11 @@ procstat_auxv(struct kinfo_proc *kipp)
else
PRINT(AT_STACKPROT, %s, "EXECUTABLE");
break;
case AT_COUNT:
PRINT(AT_COUNT, %ld, (long)auxv[i].a_un.a_val);
#ifdef AT_TIMEKEEP
case AT_TIMEKEEP:
PRINT(AT_TIMEKEEP, %p, auxv[i].a_un.a_ptr);
break;
#endif
default:
PRINT_UNKNOWN(auxv[i].a_type, auxv[i].a_un.a_val);
break;