Changeset f92b315 in mainline for uspace/srv/sysman/log.c


Ignore:
Timestamp:
2019-08-17T13:58:13Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
241f1985
Parents:
8d74fdd
git-author:
Michal Koutny <xm.koutny+hos@…> (2016-02-07 22:30:40)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-17 13:58:13)
Message:

sysman: Throttled logging to LVL_NOTE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/sysman/log.c

    r8d74fdd rf92b315  
    3737
    3838static FILE *log_file = NULL;
     39static log_level_t max_level = LVL_NOTE;
     40
     41extern void sysman_log_init(log_level_t level)
     42{
     43        max_level = level;
     44}
    3945
    4046void sysman_log(log_level_t level, const char *fmt, ...)
    4147{
     48        if (level > max_level) {
     49                return;
     50        }
    4251        va_list args;
    4352        va_start(args, fmt);
Note: See TracChangeset for help on using the changeset viewer.