From 1a81e38b17144624415d252a521fd5a06079d681 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 11 Jan 2011 13:01:13 -0500 Subject: make new code like old code Variable declarations at top of function, separate from initialization. Use == 0 instead of ! for checking pointers. Consistent spacing around {, *, casts. Declare 0-parameter functions as (void) not (). Integer valued functions return -1 on failure, 0 on success. --- mp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mp.c') diff --git a/mp.c b/mp.c index d2f828a..edabdd6 100644 --- a/mp.c +++ b/mp.c @@ -113,8 +113,8 @@ mpinit(void) switch(*p){ case MPPROC: proc = (struct mpproc*)p; - if(ncpu != proc->apicid) { - cprintf("mpinit: ncpu=%d apicpid=%d", ncpu, proc->apicid); + if(ncpu != proc->apicid){ + cprintf("mpinit: ncpu=%d apicpid=%d\n", ncpu, proc->apicid); panic("mpinit"); } if(proc->flags & MPBOOT) -- cgit v1.2.3