summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-22 09:42:46 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-24 08:16:54 -0500
commit30ea9bf981ac11b77f0e1167849d8a5ed1d02b9e (patch)
tree3059f229b2f45ec91255e8df8a2d84ee4d5a36e8
parent28a8206cf6dbc59bc38665b0708cc4d358b03726 (diff)
downloadrtems-30ea9bf981ac11b77f0e1167849d8a5ed1d02b9e.tar.bz2
libdl/rtl-mdreloc-moxie.c: Fix printf() format warnings
-rw-r--r--cpukit/libdl/rtl-mdreloc-mips.c8
-rw-r--r--cpukit/libdl/rtl-mdreloc-moxie.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/libdl/rtl-mdreloc-mips.c b/cpukit/libdl/rtl-mdreloc-mips.c
index ea9989a475..c17dbc2ee2 100644
--- a/cpukit/libdl/rtl-mdreloc-mips.c
+++ b/cpukit/libdl/rtl-mdreloc-mips.c
@@ -114,8 +114,8 @@ rtems_rtl_elf_relocate_rel (const rtems_rtl_obj_t* obj,
*where |= tmp & 0x03ffffff;
if (rtems_rtl_trace (RTEMS_RTL_TRACE_RELOC))
- printf ("rtl: R_MIPS_26 local=%d %p @ %p in %s\n",
- local, (void *)*(where), where, rtems_rtl_obj_oname (obj));
+ printf ("rtl: R_MIPS_26 local=%lu @ %p in %s\n",
+ local, (void *)*(where), rtems_rtl_obj_oname (obj));
break;
case R_TYPE(HI16):
@@ -140,7 +140,7 @@ rtems_rtl_elf_relocate_rel (const rtems_rtl_obj_t* obj,
*where = addend;
if (rtems_rtl_trace (RTEMS_RTL_TRACE_RELOC))
- printf("*where %x where %x\n", *where, where);
+ printf("*where %lx where %p\n", *where, where);
addend = *where_hi16;
addend &= 0xffff0000;
@@ -148,7 +148,7 @@ rtems_rtl_elf_relocate_rel (const rtems_rtl_obj_t* obj,
*where_hi16 = addend;
if (rtems_rtl_trace (RTEMS_RTL_TRACE_RELOC))
- printf("*where_hi %x where_hi %x\n", *where_hi16, where_hi16);
+ printf("*where_hi %lx where_hi %p\n", *where_hi16, where_hi16);
if (rtems_rtl_trace (RTEMS_RTL_TRACE_RELOC))
printf ("rtl: R_MIPS_LO16 %p @ %p in %s\n",
diff --git a/cpukit/libdl/rtl-mdreloc-moxie.c b/cpukit/libdl/rtl-mdreloc-moxie.c
index 284f68e260..1fb05e6977 100644
--- a/cpukit/libdl/rtl-mdreloc-moxie.c
+++ b/cpukit/libdl/rtl-mdreloc-moxie.c
@@ -54,7 +54,7 @@ rtems_rtl_elf_relocate_rela (const rtems_rtl_obj_t* 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: %d exceed -0x200:0x1ff\n", tmp);
+ printf("Overflow for PCREL10: %ld exceed -0x200:0x1ff\n", tmp);
return false;
}