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:
parent
ab316a07bc
commit
539388a66f
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user