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

Fix incorrect printf format specifier #337

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

szsam
Copy link
Contributor

@szsam szsam commented Mar 27, 2024

PRI macros should be used for uintptr_t. Calling a printf-like function with the wrong type of arguments causes unpredictable behavior.

PRI macros should be used for uintptr_t. Calling a printf-like function
with the wrong type of arguments causes unpredictable behavior.
@pikasTech
Copy link
Owner

I am not sure if <inttypes.h> can be used on various embedded platforms, such as stm32 and other MCU SDKs. This requires some testing, and I will validate these platforms when I have time, so this pull request will be delayed. It would be even better if you could help with testing.

@pikasTech
Copy link
Owner

As <inttypes.h> was added to C99 and tested on mdk-arm and AIR, this PR would be merged.

@pikasTech pikasTech merged commit 288465e into pikasTech:master Aug 15, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants