aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>2001-03-07 06:52:12 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2001-03-07 06:52:12 +0000
commit393d77ffad6c43dd11ab5bfcd90264bcb4df57e4 (patch)
tree24b5cfeb6bb7702a1d9c33f0c3c3d94e7d617ea8
parent2b4b2c9b7673d51b01df33ea740d2c51baafd539 (diff)
Notes
-rw-r--r--sys/kern/kern_proc.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
index cabaf68b50142..46c373981f445 100644
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -84,6 +84,7 @@ vm_zone_t ithread_zone;
void
procinit()
{
+ int i, j;
lockinit(&allproc_lock, PZERO, "allproc", 0, 0);
lockinit(&proctree_lock, PZERO, "proctree", 0, 0);
@@ -97,9 +98,17 @@ procinit()
* This should really be a compile time warning, but I do
* not know of any way to do that...
*/
- if (sizeof(struct kinfo_proc) != KINFO_PROC_SIZE)
- printf("WARNING: size of kinfo_proc (%ld) should be %d!!!\n",
- (long)sizeof(struct kinfo_proc), KINFO_PROC_SIZE);
+ if (sizeof(struct kinfo_proc) != KINFO_PROC_SIZE) {
+ printf("This message will repeat for the next 20 seconds\n");
+ for (i = 0; i < 20; i++) {
+ printf("WARNING: size of kinfo_proc (%ld) should be %d!!!\n",
+ (long)sizeof(struct kinfo_proc), KINFO_PROC_SIZE);
+ printf("The kinfo_proc structure was changed ");
+ printf("incorrectly in <sys/user.h>\n");
+ for (j = 0; j < 0x7ffffff; j++);
+ }
+
+ }
}
/*