Skip to content

Conversation

@ehaas
Copy link

@ehaas ehaas commented Oct 30, 2025

Add format(printf) attribute to modlog_printf to enable compile-time checking that format strings match arguments.

Note that this will cause incorrect modlog_printf usage which previously compiled successfully, to no longer compile.

@ehaas
Copy link
Author

ehaas commented Oct 30, 2025

Note that there is pre-existing usage of __attribute__(format) in sys/console/full/include/console/console.h so it seems like ensuring compatibility with compilers that do not support GNU-style attributes is not required?

@ehaas ehaas force-pushed the modlog-format-attribute branch 2 times, most recently from 346f7a1 to 1e70331 Compare October 30, 2025 19:16
Add format(printf) attribute to modlog_printf to enable compile-time
checking that format strings match arguments.

Note that this will cause incorrect modlog_printf usage which
previously compiled successfully, to no longer compile.
@ehaas ehaas force-pushed the modlog-format-attribute branch from 1e70331 to acedf5a Compare October 30, 2025 23:50
@github-actions github-actions bot added size/s and removed size/xs labels Oct 30, 2025
@vrahane
Copy link
Contributor

vrahane commented Nov 3, 2025

@ehaas I think once the nimble PR is merged, the CI issues will get fixed. Let's wait for that.

@vrahane vrahane requested a review from sjanc November 4, 2025 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants