is printf from newlib?
-
- Posts: 7
- Joined: Wed May 13, 2020 7:05 am
is printf from newlib?
Is it from the newlib, because I can't find the detailed function body?
I'v search the code and forum but have not get the conclusion.
sorry I don't know much about newlib, i'm learning
I'v search the code and forum but have not get the conclusion.
sorry I don't know much about newlib, i'm learning
-
- Posts: 9749
- Joined: Thu Nov 26, 2015 4:08 am
Re: is printf from newlib?
Yes, it is. Our newlib is partially in ROM and partially in a binary library in ESP-IDF, but we publish the sources on Github.
-
- Posts: 7
- Joined: Wed May 13, 2020 7:05 am
Re: is printf from newlib?
I‘m sorry it's a little hard for me..
Is there any protection to prevent two core printting log at the same time to prevent disorder log,or do you suggest to use ESP_LOGI/ESP_LOGW...? Thanks
Is there any protection to prevent two core printting log at the same time to prevent disorder log,or do you suggest to use ESP_LOGI/ESP_LOGW...? Thanks
-
- Posts: 9749
- Joined: Thu Nov 26, 2015 4:08 am
Re: is printf from newlib?
Yes, there should be. You can also use the ESP_LOG* calls, they can be more handy if you want to use different log levels.
-
- Posts: 7
- Joined: Wed May 13, 2020 7:05 am
Re: is printf from newlib?
sorry i'm feeling a little confused.. there should be means there is or there isnot..
-
- Posts: 7
- Joined: Wed May 13, 2020 7:05 am
Re: is printf from newlib?
thank you for your answer by the way
-
- Posts: 7
- Joined: Wed May 13, 2020 7:05 am
Re: is printf from newlib?
I check the source code you provide, it seems no protect in printf when it comes to 2 cores printing at the same time? Am I missing something? Thanks
-
- Posts: 9749
- Joined: Thu Nov 26, 2015 4:08 am
Re: is printf from newlib?
Sorry, I'm decently sure printf has locks somewhere in the pipeline, but I can't tell you for sure where...
Who is online
Users browsing this forum: No registered users and 68 guests