From owner-p4-projects Sun May 19 18: 0:31 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 43DC637B410; Sun, 19 May 2002 18:00:20 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0B7DA37B406 for ; Sun, 19 May 2002 18:00:16 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4K10FD53492 for perforce@freebsd.org; Sun, 19 May 2002 18:00:15 -0700 (PDT) (envelope-from mini@freebsd.org) Date: Sun, 19 May 2002 18:00:15 -0700 (PDT) Message-Id: <200205200100.g4K10FD53492@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to mini@freebsd.org using -f From: Jonathan Mini Subject: PERFORCE change 11565 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=11565 Change 11565 by mini@mini_stylus on 2002/05/19 17:59:40 Rearrange so that the default case is the last, and add break statements to the end of each case group. Affected files ... ... //depot/projects/kse/sys/compat/linprocfs/linprocfs.c#17 edit Differences ... ==== //depot/projects/kse/sys/compat/linprocfs/linprocfs.c#17 (text+ko) ==== @@ -552,7 +552,7 @@ mtx_lock_spin(&sched_lock); td2 = FIRST_THREAD_IN_PROC(p); /* XXXKSE pretend only one thread */ - + if (P_SHOULDSTOP(p)) { state = "T (stopped)"; } else { @@ -566,13 +566,6 @@ break; } switch(td2->td_state) { - default: - case TDS_NEW: - case TDS_UNQUEUED: - case TDS_IWAIT: - case TDS_SURPLUS: - state = "? (unknown)"; - break; case TDS_SLP: case TDS_MTX: state = "S (sleeping)"; @@ -581,6 +574,13 @@ case TDS_RUNNING: state = "R (running)"; break; + case TDS_NEW: + case TDS_UNQUEUED: + case TDS_IWAIT: + case TDS_SURPLUS: + default: + state = "? (unknown)"; + break; } break; case PRS_WAIT: @@ -591,6 +591,7 @@ break; default: state = "? (unknown)"; + break; } } mtx_unlock_spin(&sched_lock); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message