summaryrefslogtreecommitdiffstats
path: root/src/egl/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl/main')
-rw-r--r--src/egl/main/egllog.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/egl/main/egllog.c b/src/egl/main/egllog.c
index 7af381830ed..bf0ee017b89 100644
--- a/src/egl/main/egllog.c
+++ b/src/egl/main/egllog.c
@@ -72,17 +72,16 @@ static struct {
EGLBoolean initialized;
EGLint level;
} logging = {
- _MTX_INITIALIZER_NP,
- EGL_FALSE,
- FALLBACK_LOG_LEVEL,
+ .mutex = _MTX_INITIALIZER_NP,
+ .initialized = EGL_FALSE,
+ .level = FALLBACK_LOG_LEVEL,
};
static const char *level_strings[] = {
- /* the order is important */
- "fatal",
- "warning",
- "info",
- "debug",
+ [_EGL_FATAL] = "fatal",
+ [_EGL_WARNING] = "warning",
+ [_EGL_INFO] = "info",
+ [_EGL_DEBUG] = "debug",
};