diff --git a/src/dev/display/drm/lv_linux_drm.c b/src/dev/display/drm/lv_linux_drm.c index 4010d372f..3e921e384 100644 --- a/src/dev/display/drm/lv_linux_drm.c +++ b/src/dev/display/drm/lv_linux_drm.c @@ -162,7 +162,8 @@ void lv_linux_drm_set_file(lv_display_t * disp, const char * file, int64_t conne lv_display_set_dpi(disp, DIV_ROUND_UP(hor_res * 25400, width * 1000)); } - LV_LOG_INFO("Resolution is set to %dx%d at %ddpi", hor_res, ver_res, lv_display_get_dpi(disp)); + LV_LOG_INFO("Resolution is set to %" LV_PRId32 "x%" LV_PRId32 " at %" LV_PRId32 "dpi", + hor_res, ver_res, lv_display_get_dpi(disp)); } /********************** diff --git a/src/dev/display/fb/lv_linux_fbdev.c b/src/dev/display/fb/lv_linux_fbdev.c index c4ade901b..6a5146a92 100644 --- a/src/dev/display/fb/lv_linux_fbdev.c +++ b/src/dev/display/fb/lv_linux_fbdev.c @@ -211,7 +211,8 @@ void lv_linux_fbdev_set_file(lv_display_t * disp, const char * file) lv_display_set_dpi(disp, DIV_ROUND_UP(hor_res * 254, width * 10)); } - LV_LOG_INFO("Resolution is set to %dx%d at %ddpi", hor_res, ver_res, lv_display_get_dpi(disp)); + LV_LOG_INFO("Resolution is set to %" LV_PRId32 "x%" LV_PRId32 " at %" LV_PRId32 "dpi", + hor_res, ver_res, lv_display_get_dpi(disp)); } /********************** diff --git a/src/dev/nuttx/lv_nuttx_fbdev.c b/src/dev/nuttx/lv_nuttx_fbdev.c index 19ffe0142..c59e426c9 100644 --- a/src/dev/nuttx/lv_nuttx_fbdev.c +++ b/src/dev/nuttx/lv_nuttx_fbdev.c @@ -136,7 +136,8 @@ int lv_nuttx_fbdev_set_file(lv_display_t * disp, const char * file) lv_display_set_resolution(disp, dsc->vinfo.xres, dsc->vinfo.yres); lv_timer_set_cb(disp->refr_timer, display_refr_timer_cb); - LV_LOG_USER("Resolution is set to %dx%d at %ddpi", dsc->vinfo.xres, dsc->vinfo.yres, lv_display_get_dpi(disp)); + LV_LOG_USER("Resolution is set to %dx%d at %" LV_PRId32 "dpi", + dsc->vinfo.xres, dsc->vinfo.yres, lv_display_get_dpi(disp)); return 0; errout: diff --git a/src/libs/bin_decoder/lv_bin_decoder.c b/src/libs/bin_decoder/lv_bin_decoder.c index d3203a788..f0bffe3c2 100644 --- a/src/libs/bin_decoder/lv_bin_decoder.c +++ b/src/libs/bin_decoder/lv_bin_decoder.c @@ -770,7 +770,7 @@ static lv_result_t decode_compressed(lv_image_decoder_t * decoder, lv_image_deco uint32_t rn; uint32_t len; uint32_t compressed_len; - uint8_t * file_buf; + uint8_t * file_buf = NULL; decoder_data_t * decoder_data = get_decoder_data(dsc); lv_result_t res; lv_image_compressed_t * compressed = &decoder_data->compressed;