Changeset 332 for trunk/kernel
- Timestamp:
- Aug 7, 2017, 10:06:31 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/elf.c
r328 r332 86 86 uint32_t size ) 87 87 { 88 uint32_t count;88 error_t error; 89 89 xptr_t buf_xp; 90 90 void * buf_ptr; … … 94 94 95 95 // load .elf header 96 count= vfs_kernel_move( true, // to_buffer96 error = vfs_kernel_move( true, // to_buffer 97 97 file_xp, 98 98 buf_xp, 99 99 size ); 100 100 101 if( count != size)102 { 103 printk("\n[ERROR] in %s : cannot read ELF header size : %d / done = %d\n",104 __FUNCTION__ , size , count);101 if( error ) 102 { 103 printk("\n[ERROR] in %s : cannot read ELF header size : %d\n", 104 __FUNCTION__ , size ); 105 105 return -1; 106 106 } … … 113 113 (header->e_ident[EI_MAG3] != ELFMAG3) ) 114 114 { 115 printk("\n[ERROR] in %s : file %snot in ELF format\n", __FUNCTION__ );115 printk("\n[ERROR] in %s : file not in ELF format\n", __FUNCTION__ ); 116 116 return -1; 117 117 }
Note: See TracChangeset
for help on using the changeset viewer.