Mercurial > hg > fxanalyse
comparison 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 |
comparison
equal
deleted
inserted
replaced
247:2fc4ac8017af | 248:eaac96094640 |
---|---|
49 | 49 |
50 | 50 |
51 void __logmessage(struct logger *l, enum loglevel level, const char *frmt, ...) | 51 void __logmessage(struct logger *l, enum loglevel level, const char *frmt, ...) |
52 { | 52 { |
53 static const char *levels[] = { | 53 static const char *levels[] = { |
54 "ERROR", | 54 [ERROR] = "ERROR", |
55 "DEBUG", | 55 [DEBUG] = "DEBUG", |
56 "INFO", | 56 [INFO] = "INFO", |
57 "WARNING", | 57 [WARNING] = "WARNING", |
58 }; | 58 }; |
59 | 59 |
60 char msg[1024]; | 60 char msg[1024]; |
61 int len = 0; | 61 int len = 0; |
62 | 62 |