fix(log): replace printf with fwrite to save the stack size (#2655)

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2021-10-11 03:49:47 -07:00
committed by GitHub
parent ab316a07bc
commit 539388a66f

View File

@@ -98,7 +98,7 @@ void _lv_log_add(lv_log_level_t level, const char * file, int line, const char *
void lv_log(const char * buf)
{
#if LV_LOG_PRINTF
printf("%s", buf);
fwrite(buf, 1, strlen(buf), stdout);
#endif
if(custom_print_cb) custom_print_cb(buf);