Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/io/log.h

    raa492fe ra1a101d  
    3636
    3737#include <stdarg.h>
    38 #include <io/verify.h>
     38#include <inttypes.h>
     39#include <bool.h>
    3940
    4041typedef enum {
     
    4546        LVL_DEBUG,
    4647        LVL_DEBUG2,
    47        
     48
    4849        /** For checking range of values */
    4950        LVL_LIMIT
    5051} log_level_t;
    5152
    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);
     53typedef sysarg_t log_t;
     54#define PRIlogctx PRIxn
     55#define LOG_DEFAULT ((log_t) -1)
     56#define LOG_NO_PARENT ((log_t) 0)
     57
     58extern const char *log_level_str(log_level_t);
     59extern int log_level_from_str(const char *, log_level_t *);
     60
     61extern int log_init(const char *);
     62extern log_t log_create(const char *, log_t);
     63
     64extern void log_msg(log_t, log_level_t, const char *, ...);
     65extern void log_msgv(log_t, log_level_t, const char *, va_list);
    5666
    5767#endif
Note: See TracChangeset for help on using the changeset viewer.