Examples | examples/ticker: Fix format specifier warning in low_ticker2 (!23)
Joel Sherrill (@joel)
gitlab at rtems.org
Fri Mar 6 00:31:17 UTC 2026
Joel Sherrill started a new discussion on ticker/low_ticker2/init.c: https://gitlab.rtems.org/rtems/rtos/rtems-examples/-/merge_requests/23#note_144460
> printk( "*** END OF LOW MEMORY CLOCK TICK TEST (delay) ***\n" );
> rtems_shutdown_executive( 0 );
> }
> - printk( "TA%" PRIuPTR " - rtems_clock_uptime - %zd:%ld\n",
> - task_index, uptime.tv_sec, uptime.tv_nsec
> + printk( "TA%" PRIuPTR " - rtems_clock_uptime - %ld:%ld\n",
> + task_index,(long)uptime.tv_sec, uptime.tv_nsec
_time_t_ is 64-bit signed integer. It would be best to cast it as _int64_t_ and use PRId64. See the [POSIX definition](https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/inttypes.h.html)
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems-examples/-/merge_requests/23#note_144460
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260306/a6fa6a26/attachment.htm>
More information about the bugs
mailing list