Skip to content

Commit

Permalink
Fix compilation warning in i386
Browse files Browse the repository at this point in the history
platform/drm/cog-platform-drm.c:492:13: warning:
format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘unsigned int’
  • Loading branch information
bertogg authored and aperezdc committed May 20, 2023
1 parent 7b7c10b commit 48fdd6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/drm/cog-platform-drm.c
Expand Up @@ -491,7 +491,7 @@ init_drm(void)
return FALSE;

g_debug("init_drm: using mode [%ld] '%s' @ %dHz",
(drm_data.mode - drm_data.connector.obj->modes) / sizeof(drmModeModeInfo *), drm_data.mode->name,
(long)((drm_data.mode - drm_data.connector.obj->modes) / sizeof(drmModeModeInfo *)), drm_data.mode->name,
drm_data.mode->vrefresh);

for (int i = 0; i < drm_data.base_resources->count_encoders; ++i) {
Expand Down

0 comments on commit 48fdd6e

Please sign in to comment.