1
0
Fork 0
forked from nuttx/nuttx-update

arch: Remove fflush(stdout) from driver code

it's wrong to call stdio function inside driver

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-11-15 03:29:03 +08:00 committed by Abdelatif Guettouche
parent 94af888c66
commit 2262ddfa6d
3 changed files with 0 additions and 6 deletions

View file

@ -645,7 +645,6 @@ int lc823450_mtd_initialize(uint32_t devno)
#ifdef CONFIG_DEBUG
finfo("/dev/mtdblock%d created\n", devno);
fflush(stdout);
#endif
priv = (FAR struct lc823450_mtd_dev_s *)g_mtdmaster[ch];
@ -845,7 +844,6 @@ int lc823450_mtd_uninitialize(uint32_t devno)
#ifdef CONFIG_DEBUG
finfo("/dev/mtdblock%d deleted\n", devno);
fflush(stdout);
#endif
return OK;
}

View file

@ -1579,7 +1579,6 @@ void esp32c3_pmstandby(uint64_t time_in_us)
/* don't power down XTAL — powering it up takes different time on. */
fflush(stdout);
esp32c3_sleep_enable_rtc_timer_wakeup(time_in_us);
#ifdef CONFIG_ESP32C3_RT_TIMER
/* Get rt-timer timestamp before entering sleep */
@ -1665,7 +1664,6 @@ void IRAM_ATTR esp32c3_deep_sleep_start(void)
void esp32c3_pmsleep(uint64_t time_in_us)
{
fflush(stdout);
esp32c3_sleep_enable_rtc_timer_wakeup(time_in_us);
esp32c3_deep_sleep_start();
}

View file

@ -975,7 +975,6 @@ void esp32_pmstandby(uint64_t time_in_us)
/* don't power down XTAL — powering it up takes different time on. */
fflush(stdout);
esp32_sleep_enable_timer_wakeup(time_in_us);
#ifdef CONFIG_ESP32_RT_TIMER
@ -1128,7 +1127,6 @@ void esp32_deep_sleep_start(void)
void esp32_pmsleep(uint64_t time_in_us)
{
fflush(stdout);
esp32_sleep_enable_timer_wakeup(time_in_us);
esp32_deep_sleep_start();
}