Changes in uspace/srv/audio/hound/log.h [57a2208:737b4c0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/audio/hound/log.h
r57a2208 r737b4c0 37 37 #define LOG_H_ 38 38 39 #include <io/log.h>40 41 39 #ifndef NAME 42 40 #define NAME "NONAME" … … 45 43 #include <stdio.h> 46 44 47 #define log_fatal( ...) log_msg(LOG_DEFAULT, LVL_FATAL, ##__VA_ARGS__);48 #define log_error( ...) log_msg(LOG_DEFAULT, LVL_ERROR, ##__VA_ARGS__);49 #define log_warning( ...) log_msg(LOG_DEFAULT, LVL_WARN, ##__VA_ARGS__);50 #define log_info( ...) log_msg(LOG_DEFAULT, LVL_NOTE, ##__VA_ARGS__);51 #define log_debug( ...) log_msg(LOG_DEFAULT, LVL_DEBUG, ##__VA_ARGS__);52 #define log_verbose( ...) log_msg(LOG_DEFAULT, LVL_DEBUG2, ##__VA_ARGS__);45 #define log_fatal(msg, ...) printf(NAME ": Fatal: " msg "\n", ##__VA_ARGS__); 46 #define log_error(msg, ...) printf(NAME ": Error: " msg "\n", ##__VA_ARGS__); 47 #define log_warning(msg, ...) printf(NAME ": Warn: " msg "\n", ##__VA_ARGS__); 48 #define log_info(msg, ...) printf(NAME ": Info: " msg "\n", ##__VA_ARGS__); 49 #define log_debug(msg, ...) printf("%s: Debug: %s: " msg "\n", NAME, __FUNCTION__, ##__VA_ARGS__); 50 #define log_verbose(msg, ...) printf("%s: %s: " msg "\n", NAME, __FUNCTION__, ##__VA_ARGS__); 53 51 54 52 #endif
Note:
See TracChangeset
for help on using the changeset viewer.