Changeset a7bd30f in mainline
- Timestamp:
- 2016-04-19T16:54:21Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 184b600
- Parents:
- 8539cf2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/elf/elf_load.c
r8539cf2 ra7bd30f 175 175 176 176 if (header->e_phentsize != sizeof(elf_segment_header_t)) { 177 DPRINTF("e_phentsize: %d != %d\n", header->e_phentsize,177 DPRINTF("e_phentsize: %u != %zu\n", header->e_phentsize, 178 178 sizeof(elf_segment_header_t)); 179 179 return EE_INCOMPATIBLE; … … 181 181 182 182 if (header->e_shentsize != sizeof(elf_section_header_t)) { 183 DPRINTF("e_shentsize: %d != %d\n", header->e_shentsize,183 DPRINTF("e_shentsize: %u != %zu\n", header->e_shentsize, 184 184 sizeof(elf_section_header_t)); 185 185 return EE_INCOMPATIBLE; … … 288 288 elf->info->dynamic = 289 289 (void *)((uint8_t *)entry->p_vaddr + elf->bias); 290 DPRINTF("dynamic section found at 0x%x\n",291 ( uintptr_t)elf->info->dynamic);290 DPRINTF("dynamic section found at %p\n", 291 (void *)elf->info->dynamic); 292 292 break; 293 293 case 0x70000000: … … 328 328 seg_ptr = (void *) seg_addr; 329 329 330 DPRINTF("Load segment at addr %p, size 0x% x\n", (void *) seg_addr,330 DPRINTF("Load segment at addr %p, size 0x%zx\n", (void *) seg_addr, 331 331 entry->p_memsz); 332 332 … … 334 334 if ((entry->p_offset % entry->p_align) != 335 335 (seg_addr % entry->p_align)) { 336 DPRINTF("Align check 1 failed offset%%align= %d, "337 "vaddr%%align= %d\n",336 DPRINTF("Align check 1 failed offset%%align=0x%zx, " 337 "vaddr%%align=0x%zx\n", 338 338 entry->p_offset % entry->p_align, 339 seg_addr % entry->p_align 340 ); 339 seg_addr % entry->p_align); 341 340 return EE_INVALID; 342 341 } … … 367 366 AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE); 368 367 if (a == AS_MAP_FAILED) { 369 DPRINTF("memory mapping failed ( 0x%x, %d)\n",370 base + bias, mem_sz);368 DPRINTF("memory mapping failed (%p, %zu)\n", 369 (void *) (base + bias), mem_sz); 371 370 return EE_MEMORY; 372 371 }
Note:
See TracChangeset
for help on using the changeset viewer.