Changeset 637 for trunk/kernel/syscalls/sys_barrier.c
- Timestamp:
- Jul 18, 2019, 2:06:55 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_barrier.c
r635 r637 33 33 #include <remote_barrier.h> 34 34 35 #if DEBUG_SYS_BARRIER36 35 ////////////////////////////////////////////////////// 37 36 static char * sys_barrier_op_str( uint32_t operation ) … … 42 41 else return "undefined"; 43 42 } 44 #endif45 43 46 44 ////////////////////////////////// … … 74 72 75 73 #if DEBUG_SYSCALLS_ERROR 76 printk("\n[ERROR] in %s : unmapped barrier %x / thread %x / process %x\n",77 __FUNCTION__ , vaddr , this->trdid , process->pid );74 printk("\n[ERROR] in %s for %s : unmapped barrier %x / thread[%x,%x]\n", 75 __FUNCTION__, sys_barrier_op_str(operation), vaddr, process->pid, this->trdid ); 78 76 #endif 79 77 this->errno = error; … … 94 92 95 93 #if DEBUG_SYSCALLS_ERROR 96 printk("\n[ERROR] in %s : unmapped barrier attributes %x / thread %x / process %x\n",97 __FUNCTION__ , attr , this->trdid , process->pid );94 printk("\n[ERROR] in %s for INIT : unmapped barrier attributes %x / thread[%x,%x]\n", 95 __FUNCTION__ , attr , process->pid , this->trdid ); 98 96 #endif 99 97 this->errno = EINVAL; … … 102 100 103 101 // copy barrier attributes into kernel space 104 hal_copy_from_uspace( local_cxy, 105 &k_attr, 106 (void*)attr, 102 hal_copy_from_uspace( XPTR( local_cxy , &k_attr ), 103 (void *)attr, 107 104 sizeof(pthread_barrierattr_t) ); 108 105 … … 111 108 112 109 #if DEBUG_SYSCALLS_ERROR 113 printk("\n[ERROR] in %s : wrong arguments / count %d / x_size %d / y_size %d / nthreads %x\n",110 printk("\n[ERROR] in %s for INIT : count (%d) != x_size (%d) * y_size (%d) * nthreads (%x)\n", 114 111 __FUNCTION__, count, k_attr.x_size, k_attr.y_size, k_attr.nthreads ); 115 112 #endif … … 131 128 132 129 #if DEBUG_SYSCALLS_ERROR 133 printk("\n[ERROR] in %s : cannot create barrier %x / thread %x / process %x\n",134 __FUNCTION__ , vaddr , this->trdid , process->pid );130 printk("\n[ERROR] in %s for INIT : cannot create barrier %x / thread[%x,%x]\n", 131 __FUNCTION__ , vaddr , process->pid , this->trdid ); 135 132 #endif 136 133 this->errno = ENOMEM; … … 148 145 149 146 #if DEBUG_SYSCALLS_ERROR 150 printk("\n[ERROR] in %s : barrier %x not registered / thread %x / process %x\n",151 __FUNCTION__ , (intptr_t)vaddr , this->trdid , process->pid );147 printk("\n[ERROR] in %s for WAIT : barrier %x not registered / thread[%x,%x]\n", 148 __FUNCTION__ , (intptr_t)vaddr , process->pid, this->trdid ); 152 149 #endif 153 150 this->errno = EINVAL; … … 169 166 170 167 #if DEBUG_SYSCALLS_ERROR 171 printk("\n[ERROR] in %s : barrier %x not registered / thread %x / process %x\n",172 __FUNCTION__ , (intptr_t)vaddr , this->trdid , process->pid );168 printk("\n[ERROR] in %s for DESTROY : barrier %x not registered / thread[%x,%x]\n", 169 __FUNCTION__ , (intptr_t)vaddr , process->pid, this->trdid ); 173 170 #endif 174 171 this->errno = EINVAL;
Note: See TracChangeset
for help on using the changeset viewer.