mirror of
https://github.com/systemd/systemd.git
synced 2025-03-23 10:50:16 +03:00
terminal-util: use ansi_normal() or friends instead of ANSI_NORMAL
This commit is contained in:
parent
7b376b29a3
commit
bb146d238f
@ -1375,23 +1375,23 @@ void get_log_colors(int priority, const char **on, const char **off, const char
|
||||
if (on)
|
||||
*on = ansi_highlight_red();
|
||||
if (off)
|
||||
*off = ANSI_NORMAL;
|
||||
*off = ansi_normal();
|
||||
if (highlight)
|
||||
*highlight = ANSI_HIGHLIGHT;
|
||||
*highlight = ansi_highlight();
|
||||
|
||||
} else if (priority <= LOG_WARNING) {
|
||||
if (on)
|
||||
*on = ansi_highlight_yellow();
|
||||
if (off)
|
||||
*off = ANSI_NORMAL;
|
||||
*off = ansi_normal();
|
||||
if (highlight)
|
||||
*highlight = ANSI_HIGHLIGHT;
|
||||
*highlight = ansi_highlight();
|
||||
|
||||
} else if (priority <= LOG_NOTICE) {
|
||||
if (on)
|
||||
*on = ANSI_HIGHLIGHT;
|
||||
*on = ansi_highlight();
|
||||
if (off)
|
||||
*off = ANSI_NORMAL;
|
||||
*off = ansi_normal();
|
||||
if (highlight)
|
||||
*highlight = ansi_highlight_red();
|
||||
|
||||
@ -1399,7 +1399,7 @@ void get_log_colors(int priority, const char **on, const char **off, const char
|
||||
if (on)
|
||||
*on = ansi_grey();
|
||||
if (off)
|
||||
*off = ANSI_NORMAL;
|
||||
*off = ansi_normal();
|
||||
if (highlight)
|
||||
*highlight = ansi_highlight_red();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user