Date: Sun, 19 May 2002 18:00:15 -0700 (PDT) From: Jonathan Mini <mini@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 11565 for review Message-ID: <200205200100.g4K10FD53492@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205200100.g4K10FD53492>