Changeset 469 for trunk/kernel/syscalls/sys_sem.c
- Timestamp:
- Aug 20, 2018, 1:04:16 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_sem.c
r457 r469 74 74 75 75 #if DEBUG_SYSCALLS_ERROR 76 printk("\n[ERROR] in %s : unmapped semaphore pointer %x / thread %x in process %x \n",77 __FUNCTION__ , (intptr_t)vaddr, this->trdid, process->pid );76 printk("\n[ERROR] in %s : unmapped semaphore pointer %x / thread %x in process %x / cycle %d\n", 77 __FUNCTION__ , (intptr_t)vaddr, this->trdid, process->pid, (uint32_t)hal_get_cycles() ); 78 78 vmm_display( process , false ); 79 79 #endif … … 97 97 98 98 #if DEBUG_SYSCALLS_ERROR 99 printk("\n[ERROR] in %s : cannot create semaphore / thread %x in process %x\n",100 __FUNCTION__, this->trdid, process->pid );99 printk("\n[ERROR] in %s INIT: cannot create semaphore / thread %x in process %x / cycle %d\n", 100 __FUNCTION__, this->trdid, process->pid, (uint32_t)hal_get_cycles() ); 101 101 #endif 102 102 this->errno = ENOMEM; … … 115 115 116 116 #if DEBUG_SYSCALLS_ERROR 117 printk("\n[ERROR] in %s : unmapped buffer for current value %x / thread %x in process %x\n",118 __FUNCTION__ , (intptr_t)current_value, this->trdid, process->pid );117 printk("\n[ERROR] in %s GETVALUE: unmapped target buffer %x / thread %x in process %x / cycle %d\n", 118 __FUNCTION__ , (intptr_t)current_value, this->trdid, process->pid, (uint32_t)hal_get_cycles() ); 119 119 vmm_display( process , false ); 120 120 #endif … … 131 131 132 132 #if DEBUG_SYSCALLS_ERROR 133 printk("\n[ERROR] in %s : semaphore %x not registered / thread %x in process %x\n",134 __FUNCTION__ , (intptr_t)vaddr, this->trdid, process->pid );133 printk("\n[ERROR] in %s GETVALUE: semaphore %x not found / thread %x in process %x / cycle %d\n", 134 __FUNCTION__ , (intptr_t)vaddr, this->trdid, process->pid, (uint32_t)hal_get_cycles() ); 135 135 #endif 136 136 this->errno = EINVAL; … … 157 157 158 158 #if DEBUG_SYSCALLS_ERROR 159 printk("\n[ERROR] in %s : semaphore %x not registered / thread %x in process %x\n", 160 __FUNCTION__ , (intptr_t)vaddr, this->trdid, process->pid ); 159 printk("\n[ERROR] in %s WAIT: semaphore %x not found / thread %x in process %x / cycle %d\n", 160 __FUNCTION__ , (intptr_t)vaddr, this->trdid, process->pid, (uint32_t)hal_get_cycles() ); 161 vmm_display( process , true ); 161 162 #endif 162 163 this->errno = EINVAL; … … 180 181 181 182 #if DEBUG_SYSCALLS_ERROR 182 printk("\n[ERROR] in %s : semaphore %x not registered / thread %x in process %x\n",183 __FUNCTION__ , (intptr_t)vaddr, this->trdid, process->pid );183 printk("\n[ERROR] in %s POST: semaphore %x not found / thread %x in process %x / cycle %d\n", 184 __FUNCTION__ , (intptr_t)vaddr, this->trdid, process->pid, (uint32_t)hal_get_cycles() ); 184 185 #endif 185 186 this->errno = EINVAL; … … 203 204 204 205 #if DEBUG_SYSCALLS_ERROR 205 printk("\n[ERROR] in %s : semaphore %x not registered / thread %x in process %x\n",206 __FUNCTION__ , (intptr_t)vaddr, this->trdid, process->pid );206 printk("\n[ERROR] in %s DESTROY: semaphore %x not found / thread %x in process %x / cycle %d\n", 207 __FUNCTION__ , (intptr_t)vaddr, this->trdid, process->pid, (uint32_t)hal_get_cycles() ); 207 208 #endif 208 209 this->errno = EINVAL; … … 220 221 221 222 #if DEBUG_SYSCALLS_ERROR 222 printk("\n[ERROR] in %s : undefined operation type %d / thread %x in process %x \n",223 __FUNCTION__ , operation, this->trdid, process->pid );223 printk("\n[ERROR] in %s : undefined operation type %d / thread %x in process %x / cycle %d\n", 224 __FUNCTION__ , operation, this->trdid, process->pid, (uint32_t)hal_get_cycles() ); 224 225 #endif 225 226 this->errno = EINVAL;
Note: See TracChangeset
for help on using the changeset viewer.