forked from Imagelibrary/rtems
cpukit/libdl/rtl-mdreloc-moxie.c: Fix printf() warning
Use the correct format specifier (%d not %ld).
This commit is contained in:
committed by
Gedare Bloom
parent
ae0ef784a4
commit
2b06029e7d
@@ -162,7 +162,7 @@ rtems_rtl_elf_relocate_rela (rtems_rtl_obj* obj,
|
||||
tmp = (symvalue + rela->r_addend - ((Elf_Word)where + 2)); /* pc is the next instruction */
|
||||
tmp = (Elf_Sword)tmp >> 1;
|
||||
if (((Elf32_Sword)tmp > 0x1ff) || ((Elf32_Sword)tmp < -(Elf32_Sword)0x200)){
|
||||
printf("Overflow for PCREL10: %ld exceed -0x200:0x1ff\n", tmp);
|
||||
printf("Overflow for PCREL10: %d exceed -0x200:0x1ff\n", tmp);
|
||||
return rtems_rtl_elf_rel_failure;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user