[PATCH xserver] mi: Mention extension loading in verbose logs

Emil Velikov emil.l.velikov at gmail.com
Wed Feb 21 17:12:15 UTC 2018


From: Emil Velikov <emil.velikov at collabora.com>

Listing the extensions is useful, despite being annoying for normal
usecases. Print it only when extra (lvl 3) vebose is requested.

v2: Move the logging to InitExtensions(), as requested by Adam.

Cc: Adam Jackson <ajax at nwnk.net>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 mi/miinitext.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mi/miinitext.c b/mi/miinitext.c
index e55073bf3..5596e212f 100644
--- a/mi/miinitext.c
+++ b/mi/miinitext.c
@@ -104,6 +104,7 @@ SOFTWARE.
 #include "nonsdk_extinit.h"
 #endif
 #include "micmap.h"
+#include "os.h"
 #include "globals.h"
 
 /* List of built-in (statically linked) extensions */
@@ -260,6 +261,9 @@ InitExtensions(int argc, char *argv[])
         ext = &ExtensionModuleList[i];
         if (ext->initFunc != NULL &&
             (ext->disablePtr == NULL || !*ext->disablePtr)) {
+            LogMessageVerb(X_INFO, 3, "Initializing extension %s\n",
+                           ext->name);
+
             (ext->initFunc) ();
         }
     }
-- 
2.16.0



More information about the xorg-devel mailing list