Changeset 625 for soft/giet_vm/giet_fat32
- Timestamp:
- Jul 17, 2015, 4:34:54 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_fat32/fat32.c
r624 r625 2955 2955 // -1 : "FAT not initialised" 2956 2956 // -2 : "Illegal file descriptor" 2957 // -3 : "Cannot update DATA region for closed file" 2958 // -4 : "Cannot release memory" 2957 // -3 : "File not open" 2958 // -4 : "Cannot update DATA regions" 2959 // -5 : "Cannot release memory" 2959 2960 ///////////////////////////////////////////////////////////////////////////////// 2960 2961 int _fat_close( unsigned int fd_id ) … … 2975 2976 // takes lock 2976 2977 _spin_lock_acquire( &_fat.fat_lock ); 2978 2979 if( _fat.fd[fd_id].allocated == 0 ) 2980 { 2981 _spin_lock_release( &_fat.fat_lock ); 2982 _printf("\n[FAT ERROR] in _fat_close() : file not open\n"); 2983 return -3; 2984 } 2977 2985 2978 2986 // get the inode pointer … … 2999 3007 _printf("\n[FAT ERROR] in _fat_close() : cannot write dirty clusters " 3000 3008 "for file <%s>\n", inode->name ); 3001 return - 3;3009 return -4; 3002 3010 } 3003 3011 … … 3083 3091 if ( _fat.fd[fd_id].allocated == 0 ) 3084 3092 { 3085 _printf("\n[FAT ERROR] in _fat_file_info() : file <%s> not open\n", 3086 _fat.fd[fd_id].inode->name ); 3093 _printf("\n[FAT ERROR] in _fat_file_info() : file not open\n"); 3087 3094 return -3; 3088 3095 }
Note: See TracChangeset
for help on using the changeset viewer.