ESP8266 Developer Zone The Official ESP8266 Forum 2015-12-11T00:52:31+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1501 2015-12-11T00:52:31+08:00 2015-12-11T00:52:31+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1501&p=4996#p4996 <![CDATA[Re: how do disable os_printf output using RTOS-SDK?]]>
Actually another easy way was to redefine os_printf (within an #ifdef) and to comment out the original definition in esp_libc.h (also within an #ifdef).

best regards,

Statistics: Posted by ecl66 — Fri Dec 11, 2015 12:52 am


]]>
2015-12-10T11:39:30+08:00 2015-12-10T11:39:30+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1501&p=4987#p4987 <![CDATA[Re: how do disable os_printf output using RTOS-SDK?]]>
Here is an example. But it will disable all logs, if something goes wrong, you can not track it by logs, we do not suggest it.

Code:

void user_printf(char c)
{
   // do nothing here
}

os_install_putc1(user_printf);


Or you can define your own trace

Code:

#ifdef USER_DEBUG
#define TRACE    printf
#else
#define TRACE
#endif


Thanks for your interest in ESP8266 !

Statistics: Posted by ESP_Faye — Thu Dec 10, 2015 11:39 am


]]>
2015-12-09T01:58:09+08:00 2015-12-09T01:58:09+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1501&p=4959#p4959 <![CDATA[how do disable os_printf output using RTOS-SDK?]]>
Using the non-RTOS SDK, there is a function to disable os_printf output.

Unfortunately, this function doesn't work using the RTOS SDK: do you know any way to do so?

Many thanks,
Emmanuel

Statistics: Posted by ecl66 — Wed Dec 09, 2015 1:58 am


]]>