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

Emil Velikov emil.l.velikov at gmail.com
Mon Feb 19 15:18:12 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.

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..abe3fce8c 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 */
@@ -302,6 +303,9 @@ LoadExtensionList(const ExtensionModule ext[], int size, Bool builtin)
         return;
 
     for (i = 0; i < size; i++, newext++) {
+        LogMessageVerb(X_INFO, 3, "Loading%s extension %s\n", builtin ?
+                       " built-in" : "", ext[i].name);
+
         newext->name = ext[i].name;
         newext->initFunc = ext[i].initFunc;
         newext->disablePtr = ext[i].disablePtr;
-- 
2.16.0



More information about the xorg-devel mailing list