From 96c3edd7012edbad8b9a72d291f203108e74b5fd Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Mon, 13 May 2019 14:21:04 +0100 Subject: [PATCH] ecore drm2 - fix warnigns in DBG eina logs for long types on 32bit longs are 32bit so cast appropriately to not have warnings. --- src/lib/ecore_drm2/ecore_drm2_device.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c index c27deb8199..b95a5a7d9e 100644 --- a/src/lib/ecore_drm2/ecore_drm2_device.c +++ b/src/lib/ecore_drm2/ecore_drm2_device.c @@ -266,7 +266,7 @@ _drm2_atomic_state_crtc_fill(Ecore_Drm2_Crtc_State *cstate, int fd) { cstate->active.id = prop->prop_id; cstate->active.value = oprops->prop_values[i]; - DBG("\t\t\tValue: %lu", cstate->active.value); + DBG("\t\t\tValue: %lu", (long)cstate->active.value); } else if (!strcmp(prop->name, "BACKGROUND_COLOR")) { @@ -307,13 +307,13 @@ _drm2_atomic_state_conn_fill(Ecore_Drm2_Connector_State *cstate, int fd) { cstate->crtc.id = prop->prop_id; cstate->crtc.value = oprops->prop_values[i]; - DBG("\t\t\tValue: %lu", cstate->crtc.value); + DBG("\t\t\tValue: %lu", (long)cstate->crtc.value); } else if (!strcmp(prop->name, "DPMS")) { cstate->dpms.id = prop->prop_id; cstate->dpms.value = oprops->prop_values[i]; - DBG("\t\t\tValue: %lu", cstate->dpms.value); + DBG("\t\t\tValue: %lu", (long)cstate->dpms.value); } else if (!strcmp(prop->name, "EDID")) { @@ -348,13 +348,13 @@ _drm2_atomic_state_conn_fill(Ecore_Drm2_Connector_State *cstate, int fd) { cstate->aspect.id = prop->prop_id; cstate->aspect.value = oprops->prop_values[i]; - DBG("\t\t\tValue: %lu", cstate->aspect.value); + DBG("\t\t\tValue: %lu", (long)cstate->aspect.value); } else if (!strcmp(prop->name, "scaling mode")) { cstate->scaling.id = prop->prop_id; cstate->scaling.value = oprops->prop_values[i]; - DBG("\t\t\tValue: %lu", cstate->scaling.value); + DBG("\t\t\tValue: %lu", (long)cstate->scaling.value); } cont: @@ -392,13 +392,13 @@ _drm2_atomic_state_plane_fill(Ecore_Drm2_Plane_State *pstate, int fd) { pstate->cid.id = prop->prop_id; pstate->cid.value = oprops->prop_values[i]; - DBG("\t\t\tValue: %lu", pstate->cid.value); + DBG("\t\t\tValue: %lu", (long)pstate->cid.value); } else if (!strcmp(prop->name, "FB_ID")) { pstate->fid.id = prop->prop_id; pstate->fid.value = oprops->prop_values[i]; - DBG("\t\t\tValue: %lu", pstate->fid.value); + DBG("\t\t\tValue: %lu", (long)pstate->fid.value); } else if (!strcmp(prop->name, "CRTC_X")) { @@ -456,7 +456,7 @@ _drm2_atomic_state_plane_fill(Ecore_Drm2_Plane_State *pstate, int fd) DBG("\t\t\tCursor Plane"); break; default: - DBG("\t\t\tValue: %lu", pstate->type.value); + DBG("\t\t\tValue: %lu", (long)pstate->type.value); break; } }