Changeset 30ea9bf in rtems


Ignore:
Timestamp:
Mar 22, 2015, 2:42:46 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
d05d31f
Parents:
28a8206c
git-author:
Joel Sherrill <joel.sherrill@…> (03/22/15 14:42:46)
git-committer:
Joel Sherrill <joel.sherrill@…> (03/24/15 13:16:54)
Message:

libdl/rtl-mdreloc-moxie.c: Fix printf() format warnings

Location:
cpukit/libdl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libdl/rtl-mdreloc-mips.c

    r28a8206c r30ea9bf  
    115115
    116116      if (rtems_rtl_trace (RTEMS_RTL_TRACE_RELOC))
    117         printf ("rtl: R_MIPS_26 local=%d %p @ %p in %s\n",
    118                 local, (void *)*(where), where, rtems_rtl_obj_oname (obj));
     117        printf ("rtl: R_MIPS_26 local=%lu @ %p in %s\n",
     118                local, (void *)*(where), rtems_rtl_obj_oname (obj));
    119119      break;
    120120
     
    141141
    142142      if (rtems_rtl_trace (RTEMS_RTL_TRACE_RELOC))
    143         printf("*where %x where %x\n", *where, where);
     143        printf("*where %lx where %p\n", *where, where);
    144144
    145145      addend = *where_hi16;
     
    149149
    150150      if (rtems_rtl_trace (RTEMS_RTL_TRACE_RELOC))
    151         printf("*where_hi %x where_hi %x\n", *where_hi16, where_hi16);
     151        printf("*where_hi %lx where_hi %p\n", *where_hi16, where_hi16);
    152152
    153153      if (rtems_rtl_trace (RTEMS_RTL_TRACE_RELOC))
  • cpukit/libdl/rtl-mdreloc-moxie.c

    r28a8206c r30ea9bf  
    5555      tmp = (Elf_Sword)tmp >> 1;
    5656      if (((Elf32_Sword)tmp > 0x1ff) || ((Elf32_Sword)tmp < -(Elf32_Sword)0x200)){
    57         printf("Overflow for PCREL10: %d exceed -0x200:0x1ff\n", tmp);
     57        printf("Overflow for PCREL10: %ld exceed -0x200:0x1ff\n", tmp);
    5858        return false;
    5959      }
Note: See TracChangeset for help on using the changeset viewer.