#2235 assigned defect

libdl printf() warning on MIPS BSPs

Reported by: Joel Sherrill Owned by: Needs Funding
Priority: normal Milestone: Indefinite
Component: unspecified Version: 4.11
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

Easy enough to duplicate on mips/jmr3904. Looks to be specific to the mips and not a generic printf() format warning issue from <inttypes.h>. :)

$ grep warning log/mips-* | grep -v hexd | grep format | cut -d ':' -f2- | sort -u
../../../../../../rtems/c/src/../../cpukit/libdl/rtl-mdreloc-mips.c:118:17: warning: format '%d' expects argument of type 'int', but argument 2 has type 'Elf32_Word' [-Wformat=]
../../../../../../rtems/c/src/../../cpukit/libdl/rtl-mdreloc-mips.c:143:9: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'Elf32_Addr' [-Wformat=]
../../../../../../rtems/c/src/../../cpukit/libdl/rtl-mdreloc-mips.c:143:9: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'Elf32_Addr *' [-Wformat=]
../../../../../../rtems/c/src/../../cpukit/libdl/rtl-mdreloc-mips.c:151:9: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'Elf32_Addr' [-Wformat=]
../../../../../../rtems/c/src/../../cpukit/libdl/rtl-mdreloc-mips.c:151:9: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'Elf32_Addr *' [-Wformat=]

Change History (4)

comment:1 Changed on Feb 12, 2015 at 4:03:21 PM by Joel Sherrill

Yep. Definitely mips specific and not <inttypes.h>. If I had thought is was <inttypes.h>, I wouldn't have bothered filing a PR. That is a whole other issue.

comment:2 Changed on Mar 3, 2015 at 7:43:51 PM by Joel Sherrill

Milestone: 4.114.11.1

comment:3 Changed on Jan 26, 2017 at 7:16:00 AM by Sebastian Huber

Milestone: 4.11.14.11.2

comment:4 Changed on Feb 15, 2017 at 1:37:51 PM by Sebastian Huber

Milestone: 4.11.2Indefinite
Owner: changed from Chris Johns to Needs Funding
Status: newassigned
Note: See TracTickets for help on using tickets.