Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Cosmetic changes.
details: https://anonhg.NetBSD.org/src/rev/df51b222a08d
branches: trunk
changeset: 534440:df51b222a08d
user: enami <enami%NetBSD.org@localhost>
date: Fri Jul 26 06:04:57 2002 +0000
description:
Cosmetic changes.
diffstat:
sys/kern/kern_proc.c | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r 2f7f0bf0f96f -r df51b222a08d sys/kern/kern_proc.c
--- a/sys/kern/kern_proc.c Fri Jul 26 06:04:12 2002 +0000
+++ b/sys/kern/kern_proc.c Fri Jul 26 06:04:57 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_proc.c,v 1.49 2002/07/26 06:04:12 enami Exp $ */
+/* $NetBSD: kern_proc.c,v 1.50 2002/07/26 06:04:57 enami Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.49 2002/07/26 06:04:12 enami Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.50 2002/07/26 06:04:57 enami Exp $");
#include "opt_kstack.h"
@@ -337,7 +337,8 @@
{
struct pgrp *pgrp;
- for (pgrp = PGRPHASH(pgid)->lh_first; pgrp != 0; pgrp = pgrp->pg_hash.le_next)
+ for (pgrp = PGRPHASH(pgid)->lh_first; pgrp != NULL;
+ pgrp = pgrp->pg_hash.le_next)
if (pgrp->pg_id == pgid)
return (pgrp);
return (NULL);
@@ -564,7 +565,8 @@
if ((pgrp = pgrphashtbl[i].lh_first) != NULL) {
printf("\tindx %d\n", i);
for (; pgrp != 0; pgrp = pgrp->pg_hash.le_next) {
- printf("\tpgrp %p, pgid %d, sess %p, sesscnt %d, mem %p\n",
+ printf("\tpgrp %p, pgid %d, sess %p, "
+ "sesscnt %d, mem %p\n",
pgrp, pgrp->pg_id, pgrp->pg_session,
pgrp->pg_session->s_count,
pgrp->pg_members.lh_first);
@@ -586,7 +588,8 @@
/* XXX should be per process basis? */
int kstackleftmin = KSTACK_SIZE;
-int kstackleftthres = KSTACK_SIZE / 8; /* warn if remaining stack is less than this */
+int kstackleftthres = KSTACK_SIZE / 8; /* warn if remaining stack is
+ less than this */
void
kstack_setup_magic(const struct proc *p)
@@ -644,7 +647,7 @@
kstackleftmin = stackleft;
if (stackleft < kstackleftthres)
printf("warning: kernel stack left %d bytes(pid %u)\n",
- stackleft, p->p_pid);
+ stackleft, p->p_pid);
}
if (stackleft <= 0) {
@@ -652,4 +655,4 @@
"maybe kernel stack overflow\n", p->p_pid);
}
}
-#endif /*KSTACK_CHECK_MAGIC*/
+#endif /* KSTACK_CHECK_MAGIC */
Home |
Main Index |
Thread Index |
Old Index