diff options
author | Daniel Mack <github@zonque.org> | 2015-08-28 08:56:40 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-08-28 08:56:40 +0200 |
commit | 9c92a077b667fe3947cc8a9caa197dea8b80b8e0 (patch) | |
tree | a0210ba9455b198d5cb57aea187c75b9046a7dd6 | |
parent | 9f917da97765aa78a22b4cd37f5186f6ceaab3c1 (diff) | |
parent | 3d9495a85efc1c68b14e04aa881deddc4cb5afac (diff) |
Merge pull request #1062 from poettering/cgroups-show
cgroup-show: unescape cgroups on presentation
-rw-r--r-- | src/shared/cgroup-show.c | 6 |
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, " "); |