1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);