Examples | examples/ticker: Fix format specifier warning in low_ticker2 (!23)

Somil Gupta (@somil) gitlab at rtems.org
Thu Mar 5 22:11:58 UTC 2026



Somil Gupta created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems-examples/-/merge_requests/23

Project:Branches: somil/rtems-examples:fix-low-ticker-warning to rtems/rtos/rtems-examples:main
Author:   Somil Gupta



## Summary

examples/ticker: Fix format specifier warning in low_ticker2

The format specifier expected size_t but uptime.tv_sec is of type
time_t. Cast uptime.tv_sec to long and use %ld to match the argument
type and avoid compiler warnings.

Related to #9


## Generative AI

<!-- If you have used AI please use the "AI Contribution" template otherwise leave this blank see our fulls statement at https://www.rtems.org/generative-ai/-->


<!-- Default settings, if it is a dropdown it will set after submission -->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems-examples/-/merge_requests/23
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/20260305/7404e654/attachment-0001.htm>


More information about the bugs mailing list