projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
USB: coding style fixes (structure naming)
[bertos.git]
/
bertos
/
cfg
/
log.h
diff --git
a/bertos/cfg/log.h
b/bertos/cfg/log.h
index 9318697de97e81ad19eac2c3b7cd5f7fce23efe0..a09de318d26f94483b70d597126bdb826d2e4d5e 100644
(file)
--- a/
bertos/cfg/log.h
+++ b/
bertos/cfg/log.h
@@
-83,9
+83,8
@@
* LOG_LEVEL and LOG_VERBOSE macros must be defined before to include log module,
* otherwise the log module use a default settings.
*
* LOG_LEVEL and LOG_VERBOSE macros must be defined before to include log module,
* otherwise the log module use a default settings.
*
- * \version $Id$
* \author Daniele Basile <asterix@develer.com>
* \author Daniele Basile <asterix@develer.com>
- *
+ *
* $WIZ$
*/
* $WIZ$
*/
@@
-144,20
+143,27
@@
#if LOG_LEVEL >= LOG_LVL_ERR
#define LOG_ERR(str,...) LOG_PRINT("ERR", str, ## __VA_ARGS__)
#if LOG_LEVEL >= LOG_LVL_ERR
#define LOG_ERR(str,...) LOG_PRINT("ERR", str, ## __VA_ARGS__)
+ #define LOG_ERRB(x) x
#else
#else
- #define LOG_ERR(str,...) /* Nothing */
+ INLINE void LOG_ERR(UNUSED_ARG(const char *, fmt), ...) { /* nop */ }
+ #define LOG_ERRB(x) /* Nothing */
#endif
#if LOG_LEVEL >= LOG_LVL_WARN
#define LOG_WARN(str,...) LOG_PRINT("WARN", str, ## __VA_ARGS__)
#endif
#if LOG_LEVEL >= LOG_LVL_WARN
#define LOG_WARN(str,...) LOG_PRINT("WARN", str, ## __VA_ARGS__)
+ #define LOG_WARNB(x) x
#else
#else
- #define LOG_WARN(str,...) /* Nothing */
+ INLINE void LOG_WARN(UNUSED_ARG(const char *, fmt), ...) { /* nop */ }
+ #define LOG_WARNB(x) /* Nothing */
#endif
#if LOG_LEVEL >= LOG_LVL_INFO
#define LOG_INFO(str,...) LOG_PRINT("INFO", str, ## __VA_ARGS__)
#endif
#if LOG_LEVEL >= LOG_LVL_INFO
#define LOG_INFO(str,...) LOG_PRINT("INFO", str, ## __VA_ARGS__)
+ #define LOG_INFOB(x) x
#else
#else
- #define LOG_INFO(str,...) /* Nothing */
+ INLINE void LOG_INFO(UNUSED_ARG(const char *, fmt), ...) { /* nop */ }
+ #define LOG_INFOB(x) /* Nothing */
#endif
#endif
+
#endif /* CFG_LOG_H */
#endif /* CFG_LOG_H */