Changeset 566 for trunk/kernel/syscalls/sys_thread_wakeup.c
- Timestamp:
- Oct 4, 2018, 11:50:21 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_thread_wakeup.c
r506 r566 41 41 tm_start = hal_get_cycles(); 42 42 if( DEBUG_SYS_THREAD_WAKEUP < tm_start ) 43 printk("\n[DBG] %s : thread %x enter / activate thread %x in process%x / cycle %d\n",44 __FUNCTION__ , this, trdid, this->process->pid, (uint32_t)tm_start );43 printk("\n[DBG] %s : thread %x in process enter to activate thread %x / cycle %d\n", 44 __FUNCTION__, this->trdid, process->pid, trdid, (uint32_t)tm_start ); 45 45 #endif 46 46 … … 50 50 51 51 // check trdid argument 52 if( (target_ltid >= CONFIG_THREAD _MAX_PER_CLUSTER) || cluster_is_undefined( target_cxy ) )52 if( (target_ltid >= CONFIG_THREADS_MAX_PER_CLUSTER) || cluster_is_undefined( target_cxy ) ) 53 53 { 54 54 55 55 #if DEBUG_SYSCALLS_ERROR 56 printk("\n[ERROR] in %s : illegal trdid argument %x\n", __FUNCTION__, trdid ); 56 printk("\n[ERROR] in %s : thread %x in process %x / illegal trdid argument %x\n", 57 __FUNCTION__, this->trdid, process->pid, trdid ); 57 58 #endif 58 59 this->errno = EINVAL; … … 67 68 68 69 #if DEBUG_SYSCALLS_ERROR 69 printk("\n[ERROR] in %s : cannot find thread %x in process%x/n",70 __FUNCTION__ , t rdid , this->process->pid );70 printk("\n[ERROR] in %s : thread %x in process %x cannot find thread %x/n", 71 __FUNCTION__ , this->trdid, process->pid, trdid ); 71 72 #endif 72 73 CURRENT_THREAD->errno = EINVAL; … … 80 81 tm_end = hal_get_cycles(); 81 82 if( DEBUG_SYS_THREAD_WAKEUP < tm_end ) 82 printk("\n[DBG] %s : thread %x exit / thread %x in process%x activated / cycle %d\n",83 __FUNCTION__ , this , trdid, this->process->pid, (uint32_t)tm_end );83 printk("\n[DBG] %s : thread %x in process %x exit / thread %x activated / cycle %d\n", 84 __FUNCTION__ , this->trdid, process->pid, trdid, (uint32_t)tm_end ); 84 85 #endif 85 86
Note: See TracChangeset
for help on using the changeset viewer.