summaryrefslogtreecommitdiffstats
path: root/cpukit/libdl/rtl-mdreloc-powerpc.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-06 08:32:11 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-06 09:43:17 +0200
commit8bdbefedd526763cdf0d8a6f30d22919a4096258 (patch)
tree583390f3b14e632fe8f358f3890bb7e641646b0c /cpukit/libdl/rtl-mdreloc-powerpc.c
parentlibdl: Use 64-bit ELF on 64-bit targets (diff)
downloadrtems-8bdbefedd526763cdf0d8a6f30d22919a4096258.tar.bz2
libdl: Fix warnings
Update #3155.
Diffstat (limited to 'cpukit/libdl/rtl-mdreloc-powerpc.c')
-rw-r--r--cpukit/libdl/rtl-mdreloc-powerpc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/libdl/rtl-mdreloc-powerpc.c b/cpukit/libdl/rtl-mdreloc-powerpc.c
index 978a2e8999..a3cb6b333a 100644
--- a/cpukit/libdl/rtl-mdreloc-powerpc.c
+++ b/cpukit/libdl/rtl-mdreloc-powerpc.c
@@ -7,6 +7,7 @@
#include <sys/cdefs.h>
#include <errno.h>
+#include <inttypes.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -183,12 +184,12 @@ rtems_rtl_elf_relocate_rela (const rtems_rtl_obj_t* obj,
break;
default:
- printf ("rtl: reloc unknown: sym = %lu, type = %lu, offset = %p, "
+ printf ("rtl: reloc unknown: sym = %lu, type = %" PRIu32 ", offset = %p, "
"contents = %p\n",
ELF_R_SYM(rela->r_info), (uint32_t) ELF_R_TYPE(rela->r_info),
(void *)rela->r_offset, (void *)*where);
rtems_rtl_set_error (EINVAL,
- "%s: Unsupported relocation type %ld "
+ "%s: Unsupported relocation type %" PRId32
"in non-PLT relocations",
sect->name, (uint32_t) ELF_R_TYPE(rela->r_info));
return false;