Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch missing printf implementation #1120

Merged
merged 1 commit into from Jan 14, 2024

Conversation

salkinium
Copy link
Member

@salkinium salkinium commented Jan 13, 2024

Accidental use of printf will use the Newlib implementation which uses heap, thus causing an error message about missing :platform:heap module. This is confusing and will lead to an unnecessary usage of the heap in addition to not getting any printf output.

This adds a dummy implementation of all printf methods and places them into a /DISCARD/ section just like the heap functions.

  • Tested
  • Documentation

Accidental use of printf will use the Newlib implementation which uses
heap, thus causing an error message about missing :platform:heap module.
@salkinium salkinium merged commit 7318c28 into modm-io:develop Jan 14, 2024
12 checks passed
@salkinium salkinium deleted the fix/silent_missing_printf branch January 14, 2024 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

1 participant