From 470c6516fe4fc3b25706e9331b6d8364f8b6c4d0 Mon Sep 17 00:00:00 2001 From: Lauro Moura Date: Fri, 11 Oct 2019 09:41:16 -0400 Subject: [PATCH] cv: Switch to safe 32/64 bits printf masks This should silence 32-bit warnings about long long stuff Reviewers: vtorri, cedric, bu5hm4n Reviewed By: cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10214 --- src/lib/elementary/efl_ui_collection_view.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/elementary/efl_ui_collection_view.c b/src/lib/elementary/efl_ui_collection_view.c index 8640bdae40..08673a3cd3 100644 --- a/src/lib/elementary/efl_ui_collection_view.c +++ b/src/lib/elementary/efl_ui_collection_view.c @@ -13,6 +13,7 @@ #include #include "elm_widget.h" #include "elm_priv.h" +#include "inttypes.h" #include "efl_ui_collection_view_focus_manager.eo.h" @@ -418,7 +419,7 @@ _model_fetched_cb(Eo *obj, void *data, const Eina_Value v) efl_replace(&insert->item.model, child); } else - ERR("Inserting a model that was already fetched, dropping new model %lu", search_index); + ERR("Inserting a model that was already fetched, dropping new model %" PRIu64, search_index); } else { @@ -592,7 +593,7 @@ _entity_fetched_cb(Eo *obj, void *data, const Eina_Value v) } if (lookup->item.entity) { - ERR("Entity already existing for id %lu", search_index); + ERR("Entity already existing for id %" PRIu64, search_index); _entity_cleanup(obj, pd->factory, &lookup->item, NULL); } @@ -879,7 +880,7 @@ _batch_request_flush(Eina_List *requests, // We assume here that we are always fetching the model (model_requested must be true) if (!request->model_requested) { - CRI("Someone forgot to set model_requested for %lu to %lu.", + CRI("Someone forgot to set model_requested for %" PRIu64 " to %" PRIu64 ".", request->offset, request->offset + request->length); request->model_requested = EINA_TRUE; }