core/logging: initialize level_names array with explicit array initilizer (trivial)

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller
2014-06-04 10:25:22 +02:00
parent 6b5fb892e1
commit 3b3e33f8ec

View File

@@ -66,11 +66,10 @@ typedef struct {
} LogDesc;
static const char *level_names[LOGL_MAX] = {
/* Must be in sync with nm-logging.h */
"DEBUG",
"INFO",
"WARN",
"ERR",
[LOGL_DEBUG] = "DEBUG",
[LOGL_INFO] = "INFO",
[LOGL_WARN] = "WARN",
[LOGL_ERR] = "ERR",
};
static const LogDesc domain_descs[] = {