mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-20 12:32:18 +08:00
chore(log): remove \n from log message (#6276)
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
@@ -508,7 +508,7 @@ static d2_s32 lv_dave2d_init(void)
|
||||
/* bind the hardware */
|
||||
result = d2_inithw(_d2_handle, 0);
|
||||
if(result != D2_OK) {
|
||||
LV_LOG_ERROR("Could NOT d2_inithw\n");
|
||||
LV_LOG_ERROR("Could NOT d2_inithw");
|
||||
d2_closedevice(_d2_handle);
|
||||
return result;
|
||||
}
|
||||
@@ -526,14 +526,14 @@ static d2_s32 lv_dave2d_init(void)
|
||||
/* set blocksize for default displaylist */
|
||||
result = d2_setdlistblocksize(_d2_handle, 25);
|
||||
if(D2_OK != result) {
|
||||
LV_LOG_ERROR("Could NOT d2_setdlistblocksize\n");
|
||||
LV_LOG_ERROR("Could NOT d2_setdlistblocksize");
|
||||
d2_closedevice(_d2_handle);
|
||||
return result;
|
||||
}
|
||||
|
||||
_blit_renderbuffer = d2_newrenderbuffer(_d2_handle, 20, 20);
|
||||
if(!_blit_renderbuffer) {
|
||||
LV_LOG_ERROR("NO renderbuffer\n");
|
||||
LV_LOG_ERROR("NO renderbuffer");
|
||||
d2_closedevice(_d2_handle);
|
||||
|
||||
return D2_NOMEMORY;
|
||||
@@ -541,7 +541,7 @@ static d2_s32 lv_dave2d_init(void)
|
||||
|
||||
_renderbuffer = d2_newrenderbuffer(_d2_handle, 20, 20);
|
||||
if(!_renderbuffer) {
|
||||
LV_LOG_ERROR("NO renderbuffer\n");
|
||||
LV_LOG_ERROR("NO renderbuffer");
|
||||
d2_closedevice(_d2_handle);
|
||||
|
||||
return D2_NOMEMORY;
|
||||
@@ -549,7 +549,7 @@ static d2_s32 lv_dave2d_init(void)
|
||||
|
||||
result = d2_selectrenderbuffer(_d2_handle, _renderbuffer);
|
||||
if(D2_OK != result) {
|
||||
LV_LOG_ERROR("Could NOT d2_selectrenderbuffer\n");
|
||||
LV_LOG_ERROR("Could NOT d2_selectrenderbuffer");
|
||||
d2_closedevice(_d2_handle);
|
||||
}
|
||||
|
||||
|
||||
@@ -84,13 +84,13 @@ static gd_GIF * gif_open(gd_GIF * gif_base)
|
||||
/* Header */
|
||||
f_gif_read(gif_base, sigver, 3);
|
||||
if(memcmp(sigver, "GIF", 3) != 0) {
|
||||
LV_LOG_WARN("invalid signature\n");
|
||||
LV_LOG_WARN("invalid signature");
|
||||
goto fail;
|
||||
}
|
||||
/* Version */
|
||||
f_gif_read(gif_base, sigver, 3);
|
||||
if(memcmp(sigver, "89a", 3) != 0) {
|
||||
LV_LOG_WARN("invalid version\n");
|
||||
LV_LOG_WARN("invalid version");
|
||||
goto fail;
|
||||
}
|
||||
/* Width x Height */
|
||||
@@ -100,7 +100,7 @@ static gd_GIF * gif_open(gd_GIF * gif_base)
|
||||
f_gif_read(gif_base, &fdsz, 1);
|
||||
/* Presence of GCT */
|
||||
if(!(fdsz & 0x80)) {
|
||||
LV_LOG_WARN("no global color table\n");
|
||||
LV_LOG_WARN("no global color table");
|
||||
goto fail;
|
||||
}
|
||||
/* Color Space's Depth */
|
||||
|
||||
@@ -185,7 +185,7 @@ static lv_result_t decoder_open(lv_image_decoder_t * decoder, lv_image_decoder_d
|
||||
if(dsc->src_type == LV_IMAGE_SRC_FILE) lv_free((void *)png_data);
|
||||
|
||||
if(!decoded) {
|
||||
LV_LOG_WARN("Error decoding PNG\n");
|
||||
LV_LOG_WARN("Error decoding PNG");
|
||||
return LV_RESULT_INVALID;
|
||||
}
|
||||
|
||||
|
||||
@@ -247,7 +247,7 @@ static const void * ttf_get_glyph_bitmap_cb(lv_font_glyph_dsc_t * g_dsc, lv_draw
|
||||
lv_cache_entry_t * entry = lv_cache_acquire_or_create(tiny_ttf_cache, &search_key, (void *)font->dsc);
|
||||
|
||||
if(entry == NULL) {
|
||||
LV_LOG_ERROR("cache not allocated\n");
|
||||
LV_LOG_ERROR("cache not allocated");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -272,12 +272,12 @@ static lv_font_t * lv_tiny_ttf_create(const char * path, const void * data, size
|
||||
LV_UNUSED(data_size);
|
||||
LV_UNUSED(cache_size);
|
||||
if((path == NULL && data == NULL) || 0 >= font_size) {
|
||||
LV_LOG_ERROR("tiny_ttf: invalid argument\n");
|
||||
LV_LOG_ERROR("tiny_ttf: invalid argument");
|
||||
return NULL;
|
||||
}
|
||||
ttf_font_desc_t * dsc = lv_malloc_zeroed(sizeof(ttf_font_desc_t));
|
||||
if(dsc == NULL) {
|
||||
LV_LOG_ERROR("tiny_ttf: out of memory\n");
|
||||
LV_LOG_ERROR("tiny_ttf: out of memory");
|
||||
return NULL;
|
||||
}
|
||||
#if LV_TINY_TTF_FILE_SUPPORT != 0
|
||||
@@ -295,7 +295,7 @@ static lv_font_t * lv_tiny_ttf_create(const char * path, const void * data, size
|
||||
}
|
||||
if(0 == stbtt_InitFont(&dsc->info, &dsc->stream, stbtt_GetFontOffsetForIndex(&dsc->stream, 0))) {
|
||||
lv_free(dsc);
|
||||
LV_LOG_ERROR("tiny_ttf: init failed\n");
|
||||
LV_LOG_ERROR("tiny_ttf: init failed");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -303,7 +303,7 @@ static lv_font_t * lv_tiny_ttf_create(const char * path, const void * data, size
|
||||
dsc->stream = (const uint8_t *)data;
|
||||
if(0 == stbtt_InitFont(&dsc->info, dsc->stream, stbtt_GetFontOffsetForIndex(dsc->stream, 0))) {
|
||||
lv_free(dsc);
|
||||
LV_LOG_ERROR("tiny_ttf: init failed\n");
|
||||
LV_LOG_ERROR("tiny_ttf: init failed");
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
@@ -311,7 +311,7 @@ static lv_font_t * lv_tiny_ttf_create(const char * path, const void * data, size
|
||||
lv_font_t * out_font = lv_malloc_zeroed(sizeof(lv_font_t));
|
||||
if(out_font == NULL) {
|
||||
lv_free(dsc);
|
||||
LV_LOG_ERROR("tiny_ttf: out of memory\n");
|
||||
LV_LOG_ERROR("tiny_ttf: out of memory");
|
||||
return NULL;
|
||||
}
|
||||
out_font->get_glyph_dsc = ttf_get_glyph_dsc_cb;
|
||||
@@ -362,7 +362,7 @@ static bool tiny_ttf_cache_create_cb(tiny_ttf_cache_data_t * node, void * user_d
|
||||
h = y2 - y1 + 1;
|
||||
lv_draw_buf_t * draw_buf = lv_draw_buf_create_user(font_draw_buf_handlers, w, h, LV_COLOR_FORMAT_A8, LV_STRIDE_AUTO);
|
||||
if(NULL == draw_buf) {
|
||||
LV_LOG_ERROR("tiny_ttf: out of memory\n");
|
||||
LV_LOG_ERROR("tiny_ttf: out of memory");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user