|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
From bcb94736047823194fcfc98e23c4ed4e392eb3d3 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
From: Michal Schmidt <mschmidt@redhat.com>
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
Date: Tue, 8 Jul 2014 15:17:36 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
Subject: [PATCH] systemctl: fix visual alignment for lines prefixed with color
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
dots
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
(cherry picked from commit b7bbdabeb4a5b66fdbcdfed0d097109cfb39c43e)
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
src/systemctl/systemctl.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
index 03720f411d..8086e1e296 100644
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
--- a/src/systemctl/systemctl.c
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
+++ b/src/systemctl/systemctl.c
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
@@ -456,7 +456,7 @@ static int output_units_list(const UnitInfo *unit_infos, unsigned c) {
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
}
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
if (circle_len > 0)
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
- printf("%s%s%s", on_circle, circle ? draw_special_char(DRAW_BLACK_CIRCLE) : " ", off_circle);
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
+ printf("%s%s%s ", on_circle, circle ? draw_special_char(DRAW_BLACK_CIRCLE) : " ", off_circle);
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
printf("%s%-*s%s %s%-*s%s %s%-*s %-*s%s %-*s",
|
|
Zbigniew Jędrzejewski-Szmek |
43ff24 |
on_active, id_len, id, off_active,
|