Inode inttypes.h constants not updated when ino_t changed to 64-bit

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Jan 10 08:13:25 UTC 2019


On 09/01/2019 20:30, Joel Sherrill wrote:
> Hi
>
> I think the subject covers it.
>
> ../../../../../../rtems/c/src/../../testsuites/psxtests/psxstat/test.c: 
> In function 'stat_a_file_helper':
> ../../../../../../rtems/c/src/../../testsuites/psxtests/psxstat/test.c:243:14: 
> warning: format '%lx' expects argument of type 'long unsigned int', 
> but argument 2 has type 'ino_t {aka long long unsigned int}' [-Wformat=]
>      printf(  "...st_ino     %" PRIxino_t "\n", statbuf.st_ino );
>               ^~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~
> In file included from 
> ../../../../../../rtems/c/src/../../testsuites/psxtests/../support/include/tmacros.h:21:0,
>                  from 
> ../../../../../../rtems/c/src/../../testsuites/psxtests/psxstat/test.c:24:
> /home/joel/rtems-work/rtems-testing/rtems/rtems/cpukit/include/rtems/inttypes.h:131:21: 
> note: format string is defined here
>  #define PRIxino_t "lx"
>
> A lot of warnings were introduced when this change was made which were 
> not addressed at the time of changing the type.

I fixed this:

https://git.rtems.org/rtems/commit/?id=7bde91bd5fd20e2c0c91193728c793e0675bdc03 


-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list