Changeset 628 for trunk/kernel/fs/vfs.c
- Timestamp:
- May 6, 2019, 1:28:01 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/fs/vfs.c
r626 r628 815 815 assert( (inode_type == INODE_TYPE_FILE), "bad inode type" ); 816 816 817 // get mapper pointer and file offset from file descriptor 818 file_offset = hal_remote_l32( XPTR( file_cxy , &file_ptr->offset ) ); 819 mapper = hal_remote_lpt( XPTR( file_cxy , &file_ptr->mapper ) ); 820 817 821 #if DEBUG_VFS_USER_MOVE 818 822 char name[CONFIG_VFS_MAX_NAME_LENGTH]; … … 824 828 { 825 829 if( to_buffer ) 826 printk("\n[%s] thread[%x,%x] enter / %d bytes / map per(%s) -> buffer(%x)/ cycle %d\n",827 __FUNCTION__ , this->process->pid, this->trdid, size, name, buffer, cycle );830 printk("\n[%s] thread[%x,%x] enter / %d bytes / map(%s) -> buf(%x) / offset %d / cycle %d\n", 831 __FUNCTION__ , this->process->pid, this->trdid, size, name, buffer, file_offset, cycle ); 828 832 else 829 printk("\n[%s] thread[%x,%x] enter / %d bytes / buf fer(%x) -> mapper(%s)/ cycle %d\n",830 __FUNCTION__ , this->process->pid, this->trdid, size, buffer, name, cycle );833 printk("\n[%s] thread[%x,%x] enter / %d bytes / buf(%x) -> map(%s) / offset %d / cycle %d\n", 834 __FUNCTION__ , this->process->pid, this->trdid, size, buffer, name, file_offset, cycle ); 831 835 } 832 836 #endif 833 834 // get mapper pointer and file offset from file descriptor835 file_offset = hal_remote_l32( XPTR( file_cxy , &file_ptr->offset ) );836 mapper = hal_remote_lpt( XPTR( file_cxy , &file_ptr->mapper ) );837 837 838 838 // move data between mapper and buffer … … 856 856 { 857 857 if( to_buffer ) 858 printk("\n[%s] thread[%x,%x] exit / %d bytes / mapper(%s) -> buffer(%x) /cycle %d\n",859 __FUNCTION__ , this->process->pid, this->trdid, size, name, buffer,cycle );858 printk("\n[%s] thread[%x,%x] exit / cycle %d\n", 859 __FUNCTION__ , this->process->pid, cycle ); 860 860 else 861 printk("\n[%s] thread[%x,%x] exit / %d bytes / buffer(%x) -> mapper(%s) /cycle %d\n",862 __FUNCTION__ , this->process->pid, this->trdid, size, buffer, name,cycle );861 printk("\n[%s] thread[%x,%x] exit / cycle %d\n", 862 __FUNCTION__ , this->process->pid, cycle ); 863 863 } 864 864 #endif … … 2538 2538 #if (DEBUG_VFS_LOOKUP & 1) 2539 2539 if( DEBUG_VFS_LOOKUP < cycle ) 2540 printk("\n[%s] thread[%x,%x] look for<%s> in <%s> / last = %d\n",2540 printk("\n[%s] thread[%x,%x] search <%s> in <%s> / last = %d\n", 2541 2541 __FUNCTION__, process->pid, this->trdid, name, pathname, last ); 2542 2542 #endif
Note: See TracChangeset
for help on using the changeset viewer.