summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-08-28 08:56:40 +0200
committerDaniel Mack <github@zonque.org>2015-08-28 08:56:40 +0200
commit9c92a077b667fe3947cc8a9caa197dea8b80b8e0 (patch)
treea0210ba9455b198d5cb57aea187c75b9046a7dd6 /src/shared
parent9f917da97765aa78a22b4cd37f5186f6ceaab3c1 (diff)
parent3d9495a85efc1c68b14e04aa881deddc4cb5afac (diff)
Merge pull request #1062 from poettering/cgroups-show
cgroup-show: unescape cgroups on presentation
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, " ");