Changeset d6ddeb7 in mainline for uspace/lib/c/include/io/log.h


Ignore:
Timestamp:
2012-08-16T17:17:30Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e005f92
Parents:
ebbc8a74
Message:

Log context is actually a log

File:
1 edited

Legend:

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

    rebbc8a74 rd6ddeb7  
    5151} log_level_t;
    5252
    53 typedef sysarg_t log_context_t;
     53typedef sysarg_t log_t;
    5454#define PRIlogctx PRIxn
    55 #define LOG_CONTEXT_DEFAULT 0
     55#define LOG_DEFAULT 0
    5656
    5757extern const char *log_level_str(log_level_t);
     
    6060extern int log_init(const char *, log_level_t);
    6161
    62 extern log_context_t log_context_create(const char *);
     62extern log_t log_create(const char *);
    6363
    6464#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__)
    6666#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))
    6868
    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);
     69extern void log_log_msg(log_t, log_level_t, const char *, ...);
     70extern void log_log_msgv(log_t, log_level_t, const char *, va_list);
    7171
    7272#endif
Note: See TracChangeset for help on using the changeset viewer.