fix(libpng): fix compilation error when libpng is enabled but logging is disabled (#5124)

This commit is contained in:
PGNetHun
2023-12-29 12:27:15 +01:00
committed by GitHub
parent bf984b8a62
commit e01d7ad23a

View File

@@ -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;
}