fix(libpng): fix compilation error when libpng is enabled but logging is disabled (#5124)
This commit is contained in:
@@ -273,8 +273,7 @@ static lv_draw_buf_t * decode_png_file(const char * filename)
|
||||
lv_draw_buf_t * decoded;
|
||||
decoded = lv_draw_buf_create(image.width, image.height, LV_COLOR_FORMAT_ARGB8888, PNG_IMAGE_ROW_STRIDE(image));
|
||||
if(decoded == NULL) {
|
||||
size_t image_size = PNG_IMAGE_SIZE(image);
|
||||
LV_LOG_ERROR("png draw buff alloc %zu failed: %s", image_size, filename);
|
||||
LV_LOG_ERROR("png draw buff alloc %" LV_PRIu32 " failed: %s", PNG_IMAGE_SIZE(image), filename);
|
||||
lv_free(data);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user