# HG changeset patch # User Daniele Nicolodi # Date 1430754412 -7200 # Node ID eaac960946401aa15bcdb777ec5ad9b80f526628 # Parent 2fc4ac8017af9ad9011d9b6a8ecab51f885da7c8 Minor style improvements diff -r 2fc4ac8017af -r eaac96094640 FXAnalyse.c --- 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 diff -r 2fc4ac8017af -r eaac96094640 KKFX80E.h --- 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 diff -r 2fc4ac8017af -r eaac96094640 logging.c --- 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];