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’

(cherry picked from commit 48fdd6e)
  • Loading branch information
bertogg authored and aperezdc committed May 20, 2023
1 parent 31d11ba commit 057fa67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/drm/cog-platform-drm.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,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 057fa67

Please sign in to comment.