Skip to content

Commit

Permalink
process: fix incorrect logging fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
moodyhunter committed Aug 21, 2024
1 parent 837d626 commit 075b602
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/tasks/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ void process_exit(process_t *process, u8 exit_code, signal_t signal)
spinlock_acquire(&thread->state_lock);
if (thread->state == THREAD_STATE_DEAD)
{
pr_dinfo2(process, "cleanup thread %pp", (void *) thread);
pr_dinfo2(process, "cleanup thread %pt", (void *) thread);
MOS_ASSERT(thread != current_thread);
hashmap_remove(&thread_table, thread->tid);
list_remove(thread);
Expand All @@ -302,7 +302,7 @@ void process_exit(process_t *process, u8 exit_code, signal_t signal)
// send termination signal to all threads, except the current one
if (thread != current_thread)
{
pr_dinfo2(signal, "sending SIGKILL to thread %pp", (void *) thread);
pr_dinfo2(signal, "sending SIGKILL to thread %pt", (void *) thread);
signal_send_to_thread(thread, SIGKILL);
spinlock_release(&thread->state_lock);
thread_wait_for_tid(thread->tid);
Expand All @@ -316,7 +316,7 @@ void process_exit(process_t *process, u8 exit_code, signal_t signal)
{
spinlock_release(&thread->state_lock);
process->main_thread = thread; // make sure we properly destroy the main thread at the end
pr_dinfo2(process, "thread %pp is current thread, making it main thread", (void *) thread);
pr_dinfo2(process, "thread %pt is current thread, making it main thread", (void *) thread);
}
}
}
Expand Down

0 comments on commit 075b602

Please sign in to comment.