diff --git a/src/gui/components/cc_frm.cpp b/src/gui/components/cc_frm.cpp index cd916cdc3..2f3b06f72 100644 --- a/src/gui/components/cc_frm.cpp +++ b/src/gui/components/cc_frm.cpp @@ -554,7 +554,7 @@ void CComponentsForm::setSelectedItem(int item_id) int id = item_id; if (id > (int)(count-1) || id < 0 || (count == 0)){ - dprintf(DEBUG_NORMAL, "[CComponentsForm] [%s - %d] invalid parameter item_id = %u, available items = %u, allowed values are: 0...%u! \n", __func__, + dprintf(DEBUG_NORMAL, "[CComponentsForm] [%s - %d] invalid parameter item_id = %u, available items = %zu, allowed values are: 0...%zu! \n", __func__, __LINE__, item_id, count, diff --git a/src/gui/components/cc_frm_footer.cpp b/src/gui/components/cc_frm_footer.cpp index 87687b29e..89663db60 100644 --- a/src/gui/components/cc_frm_footer.cpp +++ b/src/gui/components/cc_frm_footer.cpp @@ -135,7 +135,7 @@ void CComponentsFooter::setButtonLabels(const struct button_label_s * const cont //ignore item, if no text and icon are defined; if (txt.empty() && btn_name.empty()){ - dprintf(DEBUG_INFO, "[CComponentsFooter] [%s - %d] ignore item [%d], no icon and text defined!\n", __func__, __LINE__, i); + dprintf(DEBUG_INFO, "[CComponentsFooter] [%s - %d] ignore item [%zu], no icon and text defined!\n", __func__, __LINE__, i); continue; } @@ -169,7 +169,7 @@ void CComponentsFooter::setButtonLabels(const struct button_label_s * const cont int w_rest = max(w_chain - w_used, 0); int btn_offset = w_rest / chain->size(); chain->setAppendOffset(btn_offset, 0); - dprintf(DEBUG_INFO, "[CComponentsFooter] [%s - %d] btn_offset = %d, w_rest = %d, w_chain = %d, w_used = %d, chain->size() = %u\n", __func__, __LINE__, btn_offset, w_rest, w_chain, w_used, chain->size()); + dprintf(DEBUG_INFO, "[CComponentsFooter] [%s - %d] btn_offset = %d, w_rest = %d, w_chain = %d, w_used = %d, chain->size() = %zu\n", __func__, __LINE__, btn_offset, w_rest, w_chain, w_used, chain->size()); //set x position of 1st button object inside chain, this is centering button objects inside chain int x_1st_btn = btn_offset/2; diff --git a/src/gui/components/cc_item_picture.cpp b/src/gui/components/cc_item_picture.cpp index fb68ee7b2..31732eff9 100644 --- a/src/gui/components/cc_item_picture.cpp +++ b/src/gui/components/cc_item_picture.cpp @@ -124,7 +124,7 @@ void CComponentsPicture::initCCItem() if (pos == string::npos) do_scale = false; - dprintf(DEBUG_INFO, "[CComponentsPicture] %s: detected image file: do_scale: %d (pos= %d), pic_name=%s\n", __func__, do_scale, pos, pic_name.c_str()); + dprintf(DEBUG_INFO, "[CComponentsPicture] %s: detected image file: do_scale: %d (pos= %zd), pic_name=%s\n", __func__, do_scale, pos, pic_name.c_str()); //get current image size getImageSize(&w_pic, &h_pic);