]> Devi Nivas Git - cs3210-lab1.git/commitdiff
fix obvious printf nits after reading through code
authorkolya <kolya>
Thu, 21 Aug 2008 23:24:02 +0000 (23:24 +0000)
committerkolya <kolya>
Thu, 21 Aug 2008 23:24:02 +0000 (23:24 +0000)
console.c
main.c

index 86c3455dce239faffd8772100c190ff311d563ca..5e5f034c1fa1b9c6c02dcde1167083fa295d2557 100644 (file)
--- a/console.c
+++ b/console.c
@@ -294,7 +294,7 @@ panic(char *s)
   use_console_lock = 0;
   cprintf("cpu%d: panic: ", cpu());
   cprintf(s, 0);
-  cprintf("\n", 0);
+  cprintf("\n");
   getcallerpcs(&s, pcs);
   for(i=0; i<10; i++)
     cprintf(" %p", pcs[i]);
diff --git a/main.c b/main.c
index 6ec6d19bb405924e4af6921c9b61901c2de0c04e..c93d9bfeab41b8d6914fe4ff22d28d188c6eb7a9 100644 (file)
--- a/main.c
+++ b/main.c
@@ -52,7 +52,7 @@ mpmain(void)
   setupsegs(0);
   xchg(&cpus[cpu()].booted, 1);
 
-  cprintf("cpu%d: scheduling\n");
+  cprintf("cpu%d: scheduling\n", cpu());
   scheduler();
 }