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

Joel Sherrill joel at rtems.org
Wed Jan 9 19:30:02 UTC 2019


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.

--joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190109/d6bf98b0/attachment.html>


More information about the devel mailing list