kernel: adjust formatting
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
#include <stdarg.h>
|
||||
#include <mango/machine/panic.h>
|
||||
#include <mango/cpu.h>
|
||||
#include <mango/libc/stdio.h>
|
||||
#include <mango/machine/panic.h>
|
||||
#include <mango/printk.h>
|
||||
#include <mango/sched.h>
|
||||
#include <mango/cpu.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
static int has_panicked = 0;
|
||||
|
||||
void panic_irq(struct cpu_context *ctx, const char *fmt, ...)
|
||||
void panic_irq(struct ml_cpu_context *ctx, const char *fmt, ...)
|
||||
{
|
||||
char buf[512];
|
||||
va_list args;
|
||||
@@ -22,7 +22,10 @@ void panic_irq(struct cpu_context *ctx, const char *fmt, ...)
|
||||
struct thread *thr = current_thread();
|
||||
|
||||
if (task && thr) {
|
||||
printk("task: %s (id: %d, thread: %d)", task->t_name, task->t_id, thr->tr_id);
|
||||
printk("task: %s (id: %d, thread: %d)",
|
||||
task->t_name,
|
||||
task->t_id,
|
||||
thr->tr_id);
|
||||
} else {
|
||||
printk("task: [bootstrap]");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user