From 214850143ddabb9c1fa91ea0351dbaab0b354f25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Tue, 15 Dec 2020 22:38:46 +0100 Subject: [PATCH] crtc/kms: Turn g_debug()s to meta_topic()s This way they can easily be enabled with e.g. MUTTER_DEBUG=kms. Part-of: --- src/backends/native/meta-crtc-kms.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backends/native/meta-crtc-kms.c b/src/backends/native/meta-crtc-kms.c index d5e469e7a..e1272f88c 100644 --- a/src/backends/native/meta-crtc-kms.c +++ b/src/backends/native/meta-crtc-kms.c @@ -230,15 +230,17 @@ meta_crtc_kms_set_mode (MetaCrtcKms *crtc_kms, kms_mode = meta_crtc_mode_kms_get_kms_mode (crtc_mode_kms); - g_debug ("Setting CRTC (%" G_GUINT64_FORMAT ") mode to %s", - meta_crtc_get_id (crtc), meta_kms_mode_get_name (kms_mode)); + meta_topic (META_DEBUG_KMS, + "Setting CRTC (%" G_GUINT64_FORMAT ") mode to %s", + meta_crtc_get_id (crtc), meta_kms_mode_get_name (kms_mode)); } else { kms_mode = NULL; - g_debug ("Unsetting CRTC (%" G_GUINT64_FORMAT ") mode", - meta_crtc_get_id (crtc)); + meta_topic (META_DEBUG_KMS, + "Unsetting CRTC (%" G_GUINT64_FORMAT ") mode", + meta_crtc_get_id (crtc)); } meta_kms_update_mode_set (kms_update,