summaryrefslogtreecommitdiff
path: root/sway/log.c
diff options
context:
space:
mode:
authortaiyu <[email protected]>2015-09-22 09:41:32 -0700
committertaiyu <[email protected]>2015-09-22 09:41:32 -0700
commit494499617090eccf73a0c75380ca884e77548a9f (patch)
tree46356ae7b43ce6a2ea133771784a072294918f78 /sway/log.c
parent6c33f8122a3c4bb8fc22129d1d2ad03f535885f7 (diff)
parent72aaffcf5b96f7d20438191e17c1df7174e52e66 (diff)
Merge branch 'master' of https://github.com/taiyu-len/sway
merge
Diffstat (limited to 'sway/log.c')
-rw-r--r--sway/log.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/log.c b/sway/log.c
index a6582172..a206d971 100644
--- a/sway/log.c
+++ b/sway/log.c
@@ -14,10 +14,10 @@ int colored = 1;
log_importance_t v = L_SILENT;
static const char *verbosity_colors[] = {
- "", // L_SILENT
- "\x1B[1;31m", // L_ERROR
- "\x1B[1;34m", // L_INFO
- "\x1B[1;30m", // L_DEBUG
+ [L_SILENT] = "",
+ [L_ERROR ] = "\x1B[1;31m",
+ [L_INFO ] = "\x1B[1;34m",
+ [L_DEBUG ] = "\x1B[1;30m",
};
void init_log(log_importance_t verbosity) {