1
0
Fork 0

backends/native: Use proper string format for uint64_t

This may stir some pain in 32bit arches.

Fixes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1395
This commit is contained in:
Carlos Garnacho 2020-08-28 11:56:29 +02:00 committed by Robert Mader
parent 673e08e458
commit f69bb2097d
2 changed files with 3 additions and 3 deletions

View file

@ -186,14 +186,14 @@ meta_crtc_kms_set_mode (MetaCrtcKms *crtc_kms,
mode = meta_crtc_mode_kms_get_drm_mode (crtc_mode_kms);
g_debug ("Setting CRTC (%ld) mode to %s",
g_debug ("Setting CRTC (%" G_GUINT64_FORMAT ") mode to %s",
meta_crtc_get_id (crtc), mode->name);
}
else
{
mode = NULL;
g_debug ("Unsetting CRTC (%ld) mode",
g_debug ("Unsetting CRTC (%" G_GUINT64_FORMAT ") mode",
meta_crtc_get_id (crtc));
}

View file

@ -414,7 +414,7 @@ meta_monitor_manager_kms_set_crtc_gamma (MetaMonitorManager *manager,
g_autoptr (MetaKmsFeedback) kms_feedback = NULL;
gamma_ramp_string = generate_gamma_ramp_string (size, red, green, blue);
g_debug ("Setting CRTC (%ld) gamma to %s",
g_debug ("Setting CRTC (%" G_GUINT64_FORMAT ") gamma to %s",
meta_crtc_get_id (crtc), gamma_ramp_string);
kms_update = meta_kms_ensure_pending_update (kms);