Ignore:
Timestamp:
Aug 14, 2017, 2:43:27 PM (7 years ago)
Author:
max@…
Message:

Start using panic().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/process.c

    r367 r373  
    245245        if( process->th_nr != 0 )
    246246    {
    247             printk("\n[PANIC] in %s : process %x in cluster %x has still active threads\n",
    248                __FUNCTION__ , process->pid , local_cxy );
    249         hal_core_sleep();
     247        panic("process %x in cluster %x has still active threads\n",
     248              process->pid , local_cxy );
    250249    }
    251250
     
    590589void process_remove_thread( thread_t * thread )
    591590{
    592     if( thread == NULL )
    593     {
    594         printk("\n[PANIC] in %s : thread argument is NULL\n", __FUNCTION__ );
    595         hal_core_sleep();
    596     }
     591    assert( (thread != NULL) , __FUNCTION__ , "thread argument is NULL" );
    597592
    598593    process_t * process = thread->process;
Note: See TracChangeset for help on using the changeset viewer.