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

samples/modules/chre: Support picolibc %p for NULL pointers #53574

Merged

Conversation

keith-packard
Copy link
Collaborator

@keith-packard keith-packard commented Jan 7, 2023

glibc and newlib print "(nil)" for NULL pointers while picolibc just prints "0". Allow either by replacing the exact "(nil)" match with ".*" instead

Note that both C and POSIX specs place no specific requirements on how pointer values are represented, so this is not a question of standards compliance.

Signed-off-by: Keith Packard [email protected]

glibc and newlib print "(nil)" for NULL pointers while picolibc just prints
"0". Allow either by replacing the exact "(nil)" match with ".*" instead

Signed-off-by: Keith Packard <[email protected]>
@laurenmurphyx64 laurenmurphyx64 merged commit bf384bf into zephyrproject-rtos:main Jan 26, 2023
@keith-packard keith-packard deleted the picolibc-percent-p branch January 26, 2023 19:43
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.

5 participants