[mutter/wip/carlosg/fix-debug-string-formats] backends/native: Use proper string format for uint64_t
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/fix-debug-string-formats] backends/native: Use proper string format for uint64_t
- Date: Fri, 28 Aug 2020 09:59:11 +0000 (UTC)
commit 6ec9c290d12d12f5d3e9a8d28a21004db6444761
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Aug 28 11:56:29 2020 +0200
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
src/backends/native/meta-crtc-kms.c | 4 ++--
src/backends/native/meta-monitor-manager-kms.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/backends/native/meta-crtc-kms.c b/src/backends/native/meta-crtc-kms.c
index de13905a70..9501fc8392 100644
--- a/src/backends/native/meta-crtc-kms.c
+++ b/src/backends/native/meta-crtc-kms.c
@@ -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));
}
diff --git a/src/backends/native/meta-monitor-manager-kms.c b/src/backends/native/meta-monitor-manager-kms.c
index 02d5c65cca..b57f98c92f 100644
--- a/src/backends/native/meta-monitor-manager-kms.c
+++ b/src/backends/native/meta-monitor-manager-kms.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]