Mercurial > hg > fxanalyse
changeset 248:eaac96094640
Minor style improvements
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Mon, 04 May 2015 17:46:52 +0200 |
parents | 2fc4ac8017af |
children | b3581a75a0b7 |
files | FXAnalyse.c KKFX80E.h logging.c |
diffstat | 3 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/FXAnalyse.c Fri Feb 27 18:55:19 2015 +0100 +++ b/FXAnalyse.c Mon May 04 17:46:52 2015 +0200 @@ -679,7 +679,7 @@ // data folder rv = Ini_GetStringCopy(configuration, "data", "folder", &datafolder); if (rv > 0) { - logmessage(INFO, "writing data files in %s", datafolder); + logmessage(INFO, "writing data files in '%s'", datafolder); } else { logmessage(ERROR, "data folder not configured in %s", path); // do not allow to start the acquisition
--- a/KKFX80E.h Fri Feb 27 18:55:19 2015 +0100 +++ b/KKFX80E.h Mon May 04 17:46:52 2015 +0200 @@ -23,4 +23,4 @@ } #endif -#endif /* ndef __KKFX80E_H__ */ +#endif
--- 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];