summaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
A tiny bit of clean up (e.g., move code searching cpu array from lapic.c into
mycpu() in proc.c.
Diffstat (limited to 'console.c')
-rw-r--r--console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/console.c b/console.c
index da28f9f..ca00a5f 100644
--- a/console.c
+++ b/console.c
@@ -112,7 +112,7 @@ panic(char *s)
cli();
cons.locking = 0;
// use lapiccpunum so that we can call panic from mycpu()
- cprintf("cpu %d: panic: ", lapiccpunum());
+ cprintf("lapicid %d: panic: ", lapicid());
cprintf(s);
cprintf("\n");
getcallerpcs(&s, pcs);