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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1488>
This commit is contained in:
Jonas Ådahl 2020-12-15 22:38:46 +01:00 committed by Marge Bot
parent 588c0a456a
commit 214850143d

View File

@ -230,14 +230,16 @@ meta_crtc_kms_set_mode (MetaCrtcKms *crtc_kms,
kms_mode = meta_crtc_mode_kms_get_kms_mode (crtc_mode_kms); kms_mode = meta_crtc_mode_kms_get_kms_mode (crtc_mode_kms);
g_debug ("Setting CRTC (%" G_GUINT64_FORMAT ") mode to %s", 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)); meta_crtc_get_id (crtc), meta_kms_mode_get_name (kms_mode));
} }
else else
{ {
kms_mode = NULL; kms_mode = NULL;
g_debug ("Unsetting CRTC (%" G_GUINT64_FORMAT ") mode", meta_topic (META_DEBUG_KMS,
"Unsetting CRTC (%" G_GUINT64_FORMAT ") mode",
meta_crtc_get_id (crtc)); meta_crtc_get_id (crtc));
} }