Hi, There is a change needed in one of the rtems specific integer headers (inttypes.h, stdint.h, or the like) in newlib... I don't recall the name of the header, but remember the copyright on the header is Ralf Corsepius... it's fixed in the Linux version, but not the rtems version... I would suppose making the rtems header match the linux version could solve the problem... but I'm not a newlib expert...
Thanks, Cindy ________________________________________ From: rtems-devel-boun...@rtems.org [rtems-devel-boun...@rtems.org] on behalf of Joel Sherrill [joel.sherr...@oarcorp.com] Sent: Monday, September 23, 2013 2:57 PM To: rtems-devel@rtems.org Subject: printf format strings to fix warnings Hi There are only a handful of printf format warnings currently. 2 warning: format '%lc' expects argument of type 'wint_t', but argument 4 has type 'wchar_t' [-Wformat=] 4 warning: format '%lo' expects argument of type 'long unsigned int', but argument 3 has type 'mode_t' [-Wformat=] 2 warning: format '%lo' expects argument of type 'long unsigned int', but argument 6 has type 'mode_t' [-Wformat=] 2 warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'blkcnt_t' [-Wformat=] 2 warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'blksize_t' [-Wformat=] 22 warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'pthread_t' [-Wformat=] 9 warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'pthread_t' [-Wformat=] Any suggestions on how to address each class with a specific inttyps.h type macro? -- Joel Sherrill, Ph.D. Director of Research & Development joel.sherr...@oarcorp.com On-Line Applications Research Ask me about RTEMS: a free RTOS Huntsville AL 35805 Support Available (256) 722-9985 _______________________________________________ rtems-devel mailing list rtems-devel@rtems.org http://www.rtems.org/mailman/listinfo/rtems-devel _______________________________________________ rtems-devel mailing list rtems-devel@rtems.org http://www.rtems.org/mailman/listinfo/rtems-devel