Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 May 2014 13:57:24 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r265183 - user/dchagin/lemul/sys/ddb
Message-ID:  <201405011357.s41DvOMZ070238@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dchagin
Date: Thu May  1 13:57:23 2014
New Revision: 265183
URL: http://svnweb.freebsd.org/changeset/base/265183

Log:
  Add p_flag output to the DDB show proc command.

Modified:
  user/dchagin/lemul/sys/ddb/db_ps.c

Modified: user/dchagin/lemul/sys/ddb/db_ps.c
==============================================================================
--- user/dchagin/lemul/sys/ddb/db_ps.c	Thu May  1 13:56:13 2014	(r265182)
+++ user/dchagin/lemul/sys/ddb/db_ps.c	Thu May  1 13:57:23 2014	(r265183)
@@ -392,17 +392,18 @@ DB_SHOW_COMMAND(proc, db_show_proc)
 	db_printf(" state: ");
 	switch (p->p_state) {
 	case PRS_NEW:
-		db_printf("NEW\n");
+		db_printf("NEW");
 		break;
 	case PRS_NORMAL:
-		db_printf("NORMAL\n");
+		db_printf("NORMAL");
 		break;
 	case PRS_ZOMBIE:
-		db_printf("ZOMBIE\n");
+		db_printf("ZOMBIE");
 		break;
 	default:
-		db_printf("??? (%#x)\n", p->p_state);
+		db_printf("??? (%#x)", p->p_state);
 	}
+	db_printf(" (p_flag 0x%x)\n", p->p_flag);
 	if (p->p_ucred != NULL) {
 		db_printf(" uid: %d  gids: ", p->p_ucred->cr_uid);
 		for (i = 0; i < p->p_ucred->cr_ngroups; i++) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405011357.s41DvOMZ070238>