Mercurial > hg > fxanalyse
diff logging.c @ 248:eaac96094640
Minor style improvements
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Mon, 04 May 2015 17:46:52 +0200 |
parents | ec81395bf08d |
children | 307fd62f376d |
line wrap: on
line diff
--- a/logging.c Fri Feb 27 18:55:19 2015 +0100 +++ b/logging.c Mon May 04 17:46:52 2015 +0200 @@ -51,10 +51,10 @@ void __logmessage(struct logger *l, enum loglevel level, const char *frmt, ...) { static const char *levels[] = { - "ERROR", - "DEBUG", - "INFO", - "WARNING", + [ERROR] = "ERROR", + [DEBUG] = "DEBUG", + [INFO] = "INFO", + [WARNING] = "WARNING", }; char msg[1024];