mpaland / printf

Tiny, fast, non-dependent and fully loaded printf implementation for embedded systems. Extensive test suite passing.
MIT License
2.47k stars 452 forks source link

this is incredible #132

Closed rickyelopez closed 2 years ago

rickyelopez commented 2 years ago

been banging my head against a HardFault due to newlib nano snprintf malloc call with FreeRTOS for days, this solved my issues instantly. Beauty, thanks!

eyalroz commented 2 years ago

@rickyelopez : If by "this" you mean this library, note that it has been abandoned for over 2 years; I am maintaining a fork with many bug fixes and some missing features: https://github.com/eyalroz/printf . Many thanks are due to mpaland, of course, for his work until 2019.

rickyelopez commented 2 years ago

oh hey thanks for pointing that out, I'll take a look!

rickyelopez commented 2 years ago

@eyalroz your fork takes up 4 more pages of ram than this one (on my chip at least) even with all the optional functionality disabled, and more importantly, crashes my display driver.

mickjc750 commented 2 years ago

@rickyelopez If you want something lighter, you may like my prnf, it's not fully compatible with the standard printf though. https://github.com/mickjc750/prnf

eyalroz commented 2 years ago

@rickyelopez : This is interesting. I would appreciate a bug report on my repository.

rickyelopez commented 2 years ago

@rickyelopez If you want something lighter, you may like my prnf, it's not fully compatible with the standard printf though. https://github.com/mickjc750/prnf

I'll keep this in mind if I find myself having to shave off more space, thanks!

@rickyelopez : This is interesting. I would appreciate a bug report on my repository.

I didn't really dig into it, but when I get a chance I can try it again and create an issue on your repo