From 4b6631338e2b954ffe69a2b96d27854e5bad492e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 15 Jul 2021 08:59:33 +0200 Subject: [PATCH] util: Add 'backend' debug topic Meant for backend things that are not large enough to warrant their own topic. Part-of: --- src/core/util.c | 3 +++ src/meta/util.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/core/util.c b/src/core/util.c index da3dfa5f4..f9f7b63cb 100644 --- a/src/core/util.c +++ b/src/core/util.c @@ -70,6 +70,7 @@ static const GDebugKey meta_debug_keys[] = { { "kms", META_DEBUG_KMS }, { "screen-cast", META_DEBUG_SCREEN_CAST }, { "remote-desktop", META_DEBUG_REMOTE_DESKTOP }, + { "backend", META_DEBUG_BACKEND }, }; #ifdef WITH_VERBOSE_MODE @@ -324,6 +325,8 @@ topic_name (MetaDebugTopic topic) return "SCREEN_CAST"; case META_DEBUG_REMOTE_DESKTOP: return "REMOTE_DESKTOP"; + case META_DEBUG_BACKEND: + return "BACKEND"; case META_DEBUG_VERBOSE: return "VERBOSE"; case META_DEBUG_WAYLAND: diff --git a/src/meta/util.h b/src/meta/util.h index 8e71fb071..834e61d49 100644 --- a/src/meta/util.h +++ b/src/meta/util.h @@ -79,6 +79,7 @@ void meta_fatal (const char *format, * @META_DEBUG_KMS: kernel mode setting * @META_DEBUG_SCREEN_CAST: screencasting * @META_DEBUG_REMOTE_DESKTOP: remote desktop + * @META_DEBUG_BACKEND: backend */ typedef enum { @@ -107,6 +108,7 @@ typedef enum META_DEBUG_KMS = 1 << 21, META_DEBUG_SCREEN_CAST = 1 << 22, META_DEBUG_REMOTE_DESKTOP = 1 << 23, + META_DEBUG_BACKEND = 1 << 24, } MetaDebugTopic; /**