Changeset 584 for trunk/kernel/syscalls/sys_write.c
- Timestamp:
- Nov 1, 2018, 12:13:45 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_write.c
r566 r584 71 71 tm_start = hal_get_cycles(); 72 72 if( DEBUG_SYS_WRITE < tm_start ) 73 printk("\n[DBG] %s : thread %x in process %xenter / vaddr %x / count %d / cycle %d\n",74 __FUNCTION__, this->trdid, process->pid, vaddr, count, (uint32_t)tm_start );73 printk("\n[DBG] %s : thread[%x,%x] enter / vaddr %x / count %d / cycle %d\n", 74 __FUNCTION__, process->pid, this->trdid, vaddr, count, (uint32_t)tm_start ); 75 75 #endif 76 76 … … 84 84 85 85 #if DEBUG_SYSCALLS_ERROR 86 printk("\n[ERROR] in %s : illegal file descriptor index\n", __FUNCTION__ ); 86 printk("\n[ERROR] in %s : thread[%x,%x] illegal file descriptor index %d\n", 87 __FUNCTION__, process->pid, this->trdid, file_id ); 87 88 #endif 88 89 this->errno = EBADFD; … … 97 98 98 99 #if DEBUG_SYSCALLS_ERROR 99 printk("\n[ERROR] in %s : user buffer unmapped %x / thread %x / process%x\n",100 __FUNCTION__ , (intptr_t)vaddr, this->trdid, process->pid);100 printk("\n[ERROR] in %s : thread[%x,%x] user buffer unmapped %x\n", 101 __FUNCTION__ , process->pid, this->trdid, (intptr_t)vaddr ); 101 102 vmm_display( process , false ); 102 103 #endif … … 112 113 113 114 #if DEBUG_SYSCALLS_ERROR 114 printk("\n[ERROR] in %s : undefined file descriptor index = %d in process %x\n",115 __FUNCTION__ , file_id , process->pid );115 printk("\n[ERROR] in %s : thread[%x,%x] undefined file descriptor index = %d\n", 116 __FUNCTION__, process->pid, this->trdid, file_id ); 116 117 #endif 117 118 this->errno = EBADFD; … … 139 140 140 141 #if DEBUG_SYSCALLS_ERROR 141 printk("\n[ERROR] in %s : file %d not writable in process %x\n",142 __FUNCTION__ , file_id , process->pid );142 printk("\n[ERROR] in %s : thread[%x,%x] file %d not writable\n", 143 __FUNCTION__ , process->pid, this->trdid, file_id ); 143 144 #endif 144 145 this->errno = EBADFD; … … 159 160 160 161 #if DEBUG_SYSCALLS_ERROR 161 printk("\n[ERROR] in %s : user buffer size %x too large / thread %x / process %x\n",162 __FUNCTION__ , count, this->trdid, process->pid);162 printk("\n[ERROR] in %s : thread[%x,%x] user buffer size %x too large\n", 163 __FUNCTION__ , process->pid, this->trdid, count ); 163 164 #endif 164 165 this->errno = EINVAL; … … 182 183 183 184 #if DEBUG_SYSCALLS_ERROR 184 printk("\n[ERROR] in %s cannot write data to file %d in process %x\n",185 __FUNCTION__ , file_id , process->pid );185 printk("\n[ERROR] in %s : thread[%x,‰x] cannot write data to file %d\n", 186 __FUNCTION__ , process->pid, this->trdid, file_id ); 186 187 #endif 187 188 this->errno = error; … … 200 201 #if DEBUG_SYS_WRITE 201 202 if( DEBUG_SYS_WRITE < tm_end ) 202 printk("\n[DBG] %s : thread %x in process %xexit / cycle %d\n",203 __FUNCTION__, this->trdid, process->pid, (uint32_t)tm_end );203 printk("\n[DBG] %s : thread[%x,%x] exit / cycle %d\n", 204 __FUNCTION__, process->pid, this->trdid, (uint32_t)tm_end ); 204 205 #endif 205 206
Note: See TracChangeset
for help on using the changeset viewer.