Changeset 717a0aa in mainline


Ignore:
Timestamp:
2012-08-16T12:09:09Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9a53e00
Parents:
7034b443
Message:

Rename double-underscored functions

Location:
uspace/lib/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/log.c

    r7034b443 r717a0aa  
    241241}
    242242
    243 bool __log_shall_record(log_level_t level)
     243bool _log_shall_record(log_level_t level)
    244244{
    245245        return get_current_observed_level() >= level;
     
    253253 * @param fmt           Format string (no traling newline).
    254254 */
    255 void __log_msg(log_level_t level, const char *fmt, ...)
     255void _log_msg(log_level_t level, const char *fmt, ...)
    256256{
    257257        va_list args;
    258258
    259259        va_start(args, fmt);
    260         __log_msgv(level, fmt, args);
     260        _log_msgv(level, fmt, args);
    261261        va_end(args);
    262262}
     
    269269 * @param fmt           Format string (no trailing newline)
    270270 */
    271 void __log_msgv(log_level_t level, const char *fmt, va_list args)
     271void _log_msgv(log_level_t level, const char *fmt, va_list args)
    272272{
    273273        assert(level < LVL_LIMIT);
  • uspace/lib/c/include/io/log.h

    r7034b443 r717a0aa  
    5353extern int log_level_from_str(const char *, log_level_t *);
    5454
    55 extern bool __log_shall_record(log_level_t);
     55extern bool _log_shall_record(log_level_t);
    5656extern int log_init(const char *, log_level_t);
    5757
    5858#define log_msg(level, format, ...) \
    5959        do { \
    60                 if (__log_shall_record((level))) { \
    61                         __log_msg(level, format, ##__VA_ARGS__); \
     60                if (_log_shall_record((level))) { \
     61                        _log_msg(level, format, ##__VA_ARGS__); \
    6262                } \
    6363        } while (false)
     
    6565#define log_msgv(level, format, args) \
    6666        do { \
    67                 if (__log_shall_record((level))) { \
    68                         __log_msgv(level, format, args); \
     67                if (_log_shall_record((level))) { \
     68                        _log_msgv(level, format, args); \
    6969                } \
    7070        } while (false)
    7171
    72 extern void __log_msg(log_level_t, const char *, ...);
    73 extern void __log_msgv(log_level_t, const char *, va_list);
     72extern void _log_msg(log_level_t, const char *, ...);
     73extern void _log_msgv(log_level_t, const char *, va_list);
    7474
    7575#endif
Note: See TracChangeset for help on using the changeset viewer.