summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-08-28 00:12:38 +0200
committerLennart Poettering <lennart@poettering.net>2015-08-28 02:08:43 +0200
commit3d9495a85efc1c68b14e04aa881deddc4cb5afac (patch)
tree6992cfea1d552c5f9aefbeb52fa92127f56e3ba2 /src/shared
parentd56cc298808b2dbfa28ae893d6f47f34df3196b1 (diff)
cgroup-show: unescape cgroups on presentation
Let's unescape cgroups on presentation, so that we show literal unit names.
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/cgroup-show.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/shared/cgroup-show.c b/src/shared/cgroup-show.c
index 1a2c4b28cd..3abccdb49a 100644
--- a/src/shared/cgroup-show.c
+++ b/src/shared/cgroup-show.c
@@ -161,8 +161,7 @@ int show_cgroup_by_path(const char *path, const char *prefix, unsigned n_columns
}
if (last) {
- printf("%s%s%s\n", prefix, draw_special_char(DRAW_TREE_BRANCH),
- basename(last));
+ printf("%s%s%s\n", prefix, draw_special_char(DRAW_TREE_BRANCH), cg_unescape(basename(last)));
if (!p1) {
p1 = strappend(prefix, draw_special_char(DRAW_TREE_VERTICAL));
@@ -185,8 +184,7 @@ int show_cgroup_by_path(const char *path, const char *prefix, unsigned n_columns
show_cgroup_one_by_path(path, prefix, n_columns, !!last, kernel_threads, flags);
if (last) {
- printf("%s%s%s\n", prefix, draw_special_char(DRAW_TREE_RIGHT),
- basename(last));
+ printf("%s%s%s\n", prefix, draw_special_char(DRAW_TREE_RIGHT), cg_unescape(basename(last)));
if (!p2) {
p2 = strappend(prefix, " ");