Changeset d6ddeb7 in mainline for uspace/lib/c/include/io/log.h
- Timestamp:
- 2012-08-16T17:17:30Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e005f92
- Parents:
- ebbc8a74
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/io/log.h
rebbc8a74 rd6ddeb7 51 51 } log_level_t; 52 52 53 typedef sysarg_t log_ context_t;53 typedef sysarg_t log_t; 54 54 #define PRIlogctx PRIxn 55 #define LOG_ CONTEXT_DEFAULT 055 #define LOG_DEFAULT 0 56 56 57 57 extern const char *log_level_str(log_level_t); … … 60 60 extern int log_init(const char *, log_level_t); 61 61 62 extern log_ context_t log_context_create(const char *);62 extern log_t log_create(const char *); 63 63 64 64 #define log_msg(level, format, ...) \ 65 log_ ctx_msg(LOG_CONTEXT_DEFAULT, (level), (format), ##__VA_ARGS__)65 log_log_msg(LOG_DEFAULT, (level), (format), ##__VA_ARGS__) 66 66 #define log_msgv(level, format, args) \ 67 log_ ctx_msgv(LOG_CONTEXT_DEFAULT, (level), (format), (args))67 log_log_msgv(LOG_DEFAULT, (level), (format), (args)) 68 68 69 extern void log_ ctx_msg(log_context_t, log_level_t, const char *, ...);70 extern void log_ ctx_msgv(log_context_t, log_level_t, const char *, va_list);69 extern void log_log_msg(log_t, log_level_t, const char *, ...); 70 extern void log_log_msgv(log_t, log_level_t, const char *, va_list); 71 71 72 72 #endif
Note:
See TracChangeset
for help on using the changeset viewer.