From: Michal Koutný Date: Wed, 6 May 2020 17:17:04 +0000 (+0200) Subject: systemctl: Fix frozen state coloring X-Git-Tag: v246-rc1~330 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=38fee6195230ebba8baaf4becb37a75e63562c45;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 83d0e397389..460e7f69b9a 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -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);