diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-01-07 09:32:16 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-01-07 09:49:16 +0100 |
commit | 9c12bcfdc52d7887c26d97bfcb8eb5fc86f2bc1a (patch) | |
tree | 5c7002d8dacec7e869ab72ee1e7eaa427ea03fac /cpukit/libdl | |
parent | score: Remove superfluous include from chainimpl.h (diff) | |
download | rtems-9c12bcfdc52d7887c26d97bfcb8eb5fc86f2bc1a.tar.bz2 |
Fix format warnings
Diffstat (limited to 'cpukit/libdl')
-rw-r--r-- | cpukit/libdl/rtl-mdreloc-sparc.c | 5 | ||||
-rw-r--r-- | cpukit/libdl/rtl-obj.c | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/cpukit/libdl/rtl-mdreloc-sparc.c b/cpukit/libdl/rtl-mdreloc-sparc.c index 6bc62d5692..c0860a3d3f 100644 --- a/cpukit/libdl/rtl-mdreloc-sparc.c +++ b/cpukit/libdl/rtl-mdreloc-sparc.c @@ -35,6 +35,7 @@ #include <sys/cdefs.h> +#include <inttypes.h> #include <stdio.h> #include <rtems/rtl/rtl.h> @@ -215,8 +216,8 @@ rtems_rtl_elf_relocate_rela (const rtems_rtl_obj* obj, #ifdef DIAGNOSTIC if (value != 0 && *where != 0) { if (rtems_rtl_trace (RTEMS_RTL_TRACE_RELOC)) - printf("rtl: reloc base_rel(%s): where=%p, *where 0x%lx, " - "addend=0x%lx, base %p\n", + printf("rtl: reloc base_rel(%s): where=%p, *where 0x%" PRIu32 ", " + "addend=0x%" PRIu32 ", base %p\n", rtems_rtl_obj_oname (obj), where, *where, rela->r_addend, sect->base); } diff --git a/cpukit/libdl/rtl-obj.c b/cpukit/libdl/rtl-obj.c index 0f58bf9bda..28a5242ac3 100644 --- a/cpukit/libdl/rtl-obj.c +++ b/cpukit/libdl/rtl-obj.c @@ -428,7 +428,7 @@ rtems_rtl_obj_add_section (rtems_rtl_obj* obj, rtems_chain_append (&obj->sections, §->node); if (rtems_rtl_trace (RTEMS_RTL_TRACE_SECTION)) - printf ("rtl: sect: add: %-2d: %s (%zu) 0x%08lx\n", + printf ("rtl: sect: add: %-2d: %s (%zu) 0x%08" PRIu32 "\n", section, name, size, flags); } return true; |