diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-04-24 08:57:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-24 08:57:58 +0100 |
commit | d2338db3145922b1dfcb3b458e5bce2568a9347a (patch) | |
tree | 8839d569ed1223aa4a7daac73482c6a866186a50 /src/basic/log.c | |
parent | 063e8de7341034cb8b16a81a46e6553fe6ce4f49 (diff) | |
parent | ef642c0d2a067d37e0a4df435cdb31d793c5c75c (diff) |
Merge pull request #5 from elogind/dev_v227
Candidate for next Version v227
Diffstat (limited to 'src/basic/log.c')
-rw-r--r-- | src/basic/log.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/basic/log.c b/src/basic/log.c index 921c952f8..c6f70a187 100644 --- a/src/basic/log.c +++ b/src/basic/log.c @@ -351,10 +351,10 @@ static int write_to_console( } if (highlight) - IOVEC_SET_STRING(iovec[n++], ANSI_HIGHLIGHT_RED_ON); + IOVEC_SET_STRING(iovec[n++], ANSI_HIGHLIGHT_RED); IOVEC_SET_STRING(iovec[n++], buffer); if (highlight) - IOVEC_SET_STRING(iovec[n++], ANSI_HIGHLIGHT_OFF); + IOVEC_SET_STRING(iovec[n++], ANSI_NORMAL); IOVEC_SET_STRING(iovec[n++], "\n"); if (writev(console_fd, iovec, n) < 0) { @@ -942,7 +942,7 @@ int log_set_max_level_from_string(const char *e) { t = log_level_from_string(e); if (t < 0) - return t; + return -EINVAL; log_set_max_level(t); return 0; |