systemctl: Fix frozen state coloring

When unit is in an unhighlighted state, freezer coloring won't be turned off
(active_off is empty) until the end of the TTY output.
This commit is contained in:
Michal Koutný
2020-05-19 19:35:36 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent d31dda5e95
commit 38fee61952
+1 -1
View File
@@ -4192,7 +4192,7 @@ static void print_status_info(
fs = !isempty(i->freezer_state) && !streq(i->freezer_state, "running") ? i->freezer_state : NULL;
if (fs)
printf(" %s(%s)%s", ansi_highlight_yellow(), fs, active_off);
printf(" %s(%s)%s", ansi_highlight_yellow(), fs, ansi_normal());
if (!isempty(i->result) && !streq(i->result, "success"))
printf(" (Result: %s)", i->result);