ecore drm2 - fix warnigns in DBG eina logs for long types

on 32bit longs are 32bit so cast appropriately to not have warnings.
This commit is contained in:
Carsten Haitzler 2019-05-13 14:21:04 +01:00
parent a8d1c7d8ad
commit 96c3edd701
1 changed files with 8 additions and 8 deletions

View File

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