Changeset 265 for trunk/kernel/libk
- Timestamp:
- Jul 21, 2017, 7:36:08 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/elf.c
r227 r265 87 87 88 88 // load .elf header 89 count = vfs_move( true , 89 count = vfs_move( true, // to_buffer 90 false, // is_user 90 91 file_xp, 91 92 buffer, … … 94 95 if( count != size ) 95 96 { 96 printk("\n[ERROR] in %s : failed to read ELF header\n", __FUNCTION__ ); 97 printk("\n[ERROR] in %s : cannot read ELF header size : %d / done = %d\n", 98 __FUNCTION__ , size , count ); 97 99 return -1; 98 100 } … … 231 233 error_t error; 232 234 233 elf_dmsg("\n[INFO] %s : enter for %s\n", __FUNCTION__ , pathname );235 elf_dmsg("\n[INFO] %s : enters for <%s>\n", __FUNCTION__ , pathname ); 234 236 235 237 // avoid GCC warning … … 250 252 } 251 253 252 elf_dmsg("\n[INFO] %s : file %sopen\n", __FUNCTION__ , pathname );254 elf_dmsg("\n[INFO] %s : file <%s> open\n", __FUNCTION__ , pathname ); 253 255 254 256 // load header in local buffer … … 301 303 302 304 // load seg descriptors array to local buffer 303 count = vfs_move( true, 305 count = vfs_move( true, // to_buffer 306 false, // is_user 304 307 file_xp, 305 308 segs_base,
Note: See TracChangeset
for help on using the changeset viewer.