Changeset 683 for trunk/kernel/syscalls/sys_opendir.c
- Timestamp:
- Jan 13, 2021, 12:36:17 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_opendir.c
r670 r683 65 65 66 66 #if DEBUG_SYSCALLS_ERROR 67 if( DEBUG_SYSCALLS_ERROR < (uint32_t)tm_start ) 68 printk("\n[ERROR] in %s : thread[%x,%x] / DIR buffer %x unmapped\n", 69 __FUNCTION__ , process->pid , this->trdid, dirp ); 67 printk("\n[ERROR] in %s : thread[%x,%x] / DIR buffer %x unmapped / cycle %d\n", 68 __FUNCTION__ , process->pid , this->trdid, dirp, (uint32_t)tm_start ); 70 69 #endif 71 70 this->errno = EINVAL; … … 80 79 81 80 #if DEBUG_SYSCALLS_ERROR 82 if( DEBUG_SYSCALLS_ERROR < (uint32_t)tm_start ) 83 printk("\n[ERROR] in %s : thread[%x,%x] / pathname %x unmapped\n", 84 __FUNCTION__ , process->pid , this->trdid, pathname ); 81 printk("\n[ERROR] in %s : thread[%x,%x] / pathname %x unmapped / cycle %d\n", 82 __FUNCTION__ , process->pid , this->trdid, pathname, (uint32_t)tm_start ); 85 83 #endif 86 84 this->errno = EINVAL; … … 92 90 93 91 #if DEBUG_SYSCALLS_ERROR 94 if( DEBUG_SYSCALLS_ERROR < (uint32_t)tm_start ) 95 printk("\n[ERROR] in %s / thread[%x,%x] : pathname too long\n", 96 __FUNCTION__ , process->pid , this->trdid ); 92 printk("\n[ERROR] in %s / thread[%x,%x] : pathname too long / cycle %d\n", 93 __FUNCTION__ , process->pid , this->trdid, (uint32_t)tm_start ); 97 94 #endif 98 95 this->errno = ENFILE; … … 138 135 139 136 #if DEBUG_SYSCALLS_ERROR 140 if( DEBUG_SYSCALLS_ERROR < (uint32_t)tm_start ) 141 printk("\n[ERROR] in %s : thread[%x,%x] / cannot found directory <%s>\n", 142 __FUNCTION__ , process->pid , this->trdid , kbuf ); 137 printk("\n[ERROR] in %s : thread[%x,%x] / cannot found directory <%s> / cycle %d\n", 138 __FUNCTION__ , process->pid , this->trdid , kbuf , (uint32_t)tm_start ); 143 139 #endif 144 140 this->errno = ENFILE; … … 155 151 156 152 #if DEBUG_SYSCALLS_ERROR 157 if( DEBUG_SYSCALLS_ERROR < (uint32_t)tm_start ) 158 printk("\n[ERROR] in %s : thread[%x,%x] / <%s> is not a directory\n", 159 __FUNCTION__ , process->pid , this->trdid , kbuf ); 153 printk("\n[ERROR] in %s : thread[%x,%x] / <%s> is not a directory / cycle %d\n", 154 __FUNCTION__ , process->pid , this->trdid , kbuf , (uint32_t)tm_start ); 160 155 #endif 161 156 this->errno = ENFILE; … … 163 158 } 164 159 165 // create a new user_dir_t structure in target directory inode cluster160 // create an user_dir_t structure in cluster containing directory inode 166 161 // map it in the reference user process VMM (in a new ANON vseg) 167 162 // an get the local pointer on the created user_dir_t structure … … 183 178 184 179 #if DEBUG_SYSCALLS_ERROR 185 if( DEBUG_SYSCALLS_ERROR < (uint32_t)tm_start ) 186 printk("\n[ERROR] in %s : thread[%x,%x] / cannot create user_dir for <%s>\n", 187 __FUNCTION__ , process->pid , this->trdid , kbuf ); 180 printk("\n[ERROR] in %s : thread[%x,%x] / cannot create user_dir for <%s> / cycle %d\n", 181 __FUNCTION__ , process->pid , this->trdid , kbuf , (uint32_t)tm_start ); 188 182 #endif 189 183 this->errno = ENFILE;
Note: See TracChangeset
for help on using the changeset viewer.