mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +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)
|
void lv_log(const char * buf)
|
||||||
{
|
{
|
||||||
#if LV_LOG_PRINTF
|
#if LV_LOG_PRINTF
|
||||||
printf("%s", buf);
|
fwrite(buf, 1, strlen(buf), stdout);
|
||||||
#endif
|
#endif
|
||||||
if(custom_print_cb) custom_print_cb(buf);
|
if(custom_print_cb) custom_print_cb(buf);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user