summaryrefslogtreecommitdiff
path: root/kernel/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/log.c')
-rw-r--r--kernel/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/log.c b/kernel/log.c
index 8f72b3a..ff6f45b 100644
--- a/kernel/log.c
+++ b/kernel/log.c
@@ -14,8 +14,8 @@ void dump_backtrace(u32 max_frames) {
kprintf(" 0x%x\n", stk->eip);
stk = stk->ebp;
}
- if (get_current_task()) {
- kprintf(" PID: %x\n", get_current_task()->pid);
+ if (current_task) {
+ kprintf(" PID: %x\n", current_task->pid);
}
}