svn commit: r240847 - stable/9/usr.bin/procstat

Konstantin Belousov kib at FreeBSD.org
Sun Sep 23 06:16:09 UTC 2012


Author: kib
Date: Sun Sep 23 06:16:08 2012
New Revision: 240847
URL: http://svn.freebsd.org/changeset/base/240847

Log:
  MFC r240546:
  Handle AT_TIMEKEEP in procstat(1) -x.
  
  PR:	bin/171662

Modified:
  stable/9/usr.bin/procstat/procstat_auxv.c
Directory Properties:
  stable/9/usr.bin/procstat/   (props changed)

Modified: stable/9/usr.bin/procstat/procstat_auxv.c
==============================================================================
--- stable/9/usr.bin/procstat/procstat_auxv.c	Sun Sep 23 03:46:03 2012	(r240846)
+++ stable/9/usr.bin/procstat/procstat_auxv.c	Sun Sep 23 06:16:08 2012	(r240847)
@@ -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;


More information about the svn-src-stable-9 mailing list