Changeset 670 for trunk/kernel/syscalls/sys_closedir.c
- Timestamp:
- Nov 19, 2020, 11:45:52 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_closedir.c
r614 r670 2 2 * sys_closedir.c - Close an open VFS directory. 3 3 * 4 * Author Alain Greiner (2016,2017,2018 )4 * Author Alain Greiner (2016,2017,2018,2019,20120) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 37 37 { 38 38 xptr_t dir_xp; // extended pointer on user_dir_t structure 39 user_dir_t * dir_ptr; // l cal pointer on user_dir_t structure39 user_dir_t * dir_ptr; // local pointer on user_dir_t structure 40 40 cxy_t dir_cxy; // cluster identifier (inode cluster) 41 41 … … 43 43 process_t * process = this->process; // client process 44 44 45 #if (DEBUG_SYS_CLOSEDIR || CONFIG_INSTRUMENTATION_SYSCALLS)45 #if DEBUG_SYS_CLOSEDIR || DEBUG_SYSCALLS_ERROR || CONFIG_INSTRUMENTATION_SYSCALLS 46 46 uint64_t tm_start = hal_get_cycles(); 47 47 #endif … … 60 60 61 61 #if DEBUG_SYSCALLS_ERROR 62 printk("\n[ERROR] in %s / thread[%x,%x] : DIR pointer %x not registered\n", 62 if( DEBUG_SYSCALLS_ERROR < (uint32_t)tm_start ) 63 printk("\n[ERROR] in %s : thread[%x,%x] / DIR pointer %x not registered\n", 63 64 __FUNCTION__ , process->pid , this->trdid, dirp ); 64 65 #endif … … 67 68 } 68 69 69 // get cluster and local pointer for user_dir_t structure70 // get cluster and local pointer for user_dir_t structure 70 71 dir_ptr = GET_PTR( dir_xp ); 71 72 dir_cxy = GET_CXY( dir_xp );
Note: See TracChangeset
for help on using the changeset viewer.