diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-06 08:32:11 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-06 09:43:17 +0200 |
commit | 8bdbefedd526763cdf0d8a6f30d22919a4096258 (patch) | |
tree | 583390f3b14e632fe8f358f3890bb7e641646b0c /cpukit/libdl/rtl-mdreloc-powerpc.c | |
parent | libdl: Use 64-bit ELF on 64-bit targets (diff) | |
download | rtems-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.c | 5 |
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; |