Changes in uspace/lib/c/include/io/log.h [aa492fe:a1a101d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/io/log.h
raa492fe ra1a101d 36 36 37 37 #include <stdarg.h> 38 #include <io/verify.h> 38 #include <inttypes.h> 39 #include <bool.h> 39 40 40 41 typedef enum { … … 45 46 LVL_DEBUG, 46 47 LVL_DEBUG2, 47 48 48 49 /** For checking range of values */ 49 50 LVL_LIMIT 50 51 } log_level_t; 51 52 52 extern int log_init(const char *, log_level_t); 53 extern void log_msg(log_level_t, const char *, ...) 54 PRINTF_ATTRIBUTE(2, 3); 55 extern void log_msgv(log_level_t, const char *, va_list); 53 typedef sysarg_t log_t; 54 #define PRIlogctx PRIxn 55 #define LOG_DEFAULT ((log_t) -1) 56 #define LOG_NO_PARENT ((log_t) 0) 57 58 extern const char *log_level_str(log_level_t); 59 extern int log_level_from_str(const char *, log_level_t *); 60 61 extern int log_init(const char *); 62 extern log_t log_create(const char *, log_t); 63 64 extern void log_msg(log_t, log_level_t, const char *, ...); 65 extern void log_msgv(log_t, log_level_t, const char *, va_list); 56 66 57 67 #endif
Note:
See TracChangeset
for help on using the changeset viewer.