From 3fedbb6e1f849c5e0a4033d68201d60c2fc48121 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 6 Jul 2024 23:37:11 +0300 Subject: core bringup + various warnings + dbg_fdt() is apparently broken, possibly due to UB or something, but it causes some issues with optimizations enabled. Remove it temporarily --- src/tcb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tcb.c') diff --git a/src/tcb.c b/src/tcb.c index 45c31ce..27256e9 100644 --- a/src/tcb.c +++ b/src/tcb.c @@ -303,7 +303,7 @@ void unreference_proc(struct tcb *p) hard_assert(is_proc(p), RETURN_VOID); p->refcount--; if (zombie(p) && p->refcount == 0) { - dbg("thread %d is completely destroyed\n", p->tid); + dbg("thread %ld is completely destroyed\n", (long)p->tid); __destroy_thread_data(p); } } -- cgit v1.3