Changeset 438 for trunk/kernel/syscalls/sys_isatty.c
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_isatty.c
r437 r438 48 48 process_t * process = this->process; 49 49 50 #if CONFIG_DEBUG_SYS_ISATTY50 #if DEBUG_SYS_ISATTY 51 51 uint64_t tm_start; 52 52 uint64_t tm_end; 53 53 tm_start = hal_get_cycles(); 54 if( CONFIG_DEBUG_SYS_ISATTY < tm_start )54 if( DEBUG_SYS_ISATTY < tm_start ) 55 55 printk("\n[DBG] %s : thread %x enter / process %x / cycle %d\n" 56 56 __FUNCTION__ , this, process->pid, (uint32_t)tm_start ); … … 61 61 { 62 62 63 #if CONFIG_DEBUG_SYSCALLS_ERROR63 #if DEBUG_SYSCALLS_ERROR 64 64 printk("\n[ERROR] in %s : illegal file descriptor index = %d\n", __FUNCTION__ , file_id ); 65 65 #endif … … 74 74 { 75 75 76 #if CONFIG_DEBUG_SYSCALLS_ERROR76 #if DEBUG_SYSCALLS_ERROR 77 77 printk("\n[ERROR] in %s : undefined fd_id %d in process %x\n", 78 78 __FUNCTION__ , file_id , process->pid ); … … 108 108 } 109 109 110 #if CONFIG_DEBUG_SYS_ISATTY110 #if DEBUG_SYS_ISATTY 111 111 tm_end = hal_get_cycles(); 112 if( CONFIG_DEBUG_SYS_ISATTY < tm_end )112 if( DEBUG_SYS_ISATTY < tm_end ) 113 113 printk("\n[DBG] %s : thread %x exit / process %x / cost %d / cycle %d\n", 114 114 __FUNCTION__, this, process->pid, (uint32_t)(tm_end - tm_start), (uint32_t)tm_end );
Note: See TracChangeset
for help on using the changeset viewer.