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

Use Crystal::System.print_error instead of LibC.printf #13161

Merged

Conversation

HertzDevil
Copy link
Contributor

@HertzDevil HertzDevil commented Mar 7, 2023

LibC.printf is currently only used for GC warnings and fatal errors; it is more appropriate to print them to the standard error stream instead of the standard output. This PR switches them to Crystal::System.print_error which is also backed by a printf-like function.

@straight-shoota straight-shoota added this to the 1.8.0 milestone Mar 7, 2023
@straight-shoota straight-shoota merged commit d2c730f into crystal-lang:master Mar 9, 2023
@HertzDevil HertzDevil deleted the refactor/libc-printf branch March 9, 2023 10:20
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.

None yet

2 participants