]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: Fix frozen state coloring
authorMichal Koutný <mkoutny@suse.com>
Wed, 6 May 2020 17:17:04 +0000 (19:17 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 19 May 2020 17:35:36 +0000 (19:35 +0200)
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.

src/systemctl/systemctl.c

index 83d0e397389057e1781b996df90e18da754e5cc0..460e7f69b9ae3e34a26f1500e314bd1cf219151e 100644 (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);