chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
journal, shared: fix warnings during compilation on 32 bits
[elogind.git]
/
src
/
shared
/
cgroup-show.c
diff --git
a/src/shared/cgroup-show.c
b/src/shared/cgroup-show.c
index 2ffed8b739acc2d36cd44a655e14642e4d1281dd..437d09711b947ff92219b84e50f7658310379e4d 100644
(file)
--- a/
src/shared/cgroup-show.c
+++ b/
src/shared/cgroup-show.c
@@
-86,9
+86,10
@@
static void show_pid_array(int pids[], unsigned n_pids, const char *prefix, unsi
get_process_cmdline(pids[i], n_columns, true, &t);
get_process_cmdline(pids[i], n_columns, true, &t);
- printf("%s%s
%*lu %s\n",
+ printf("%s%s%*lu %s\n",
prefix,
prefix,
- extra ? "\342\200\243" : ((more || i < n_pids-1) ? "\342\224\234" : "\342\224\224"),
+ draw_special_char(extra ? DRAW_TRIANGULAR_BULLET :
+ ((more || i < n_pids-1) ? DRAW_TREE_BRANCH : DRAW_TREE_RIGHT)),
pid_width,
(unsigned long) pids[i],
strna(t));
pid_width,
(unsigned long) pids[i],
strna(t));
@@
-207,10
+208,11
@@
int show_cgroup_by_path(const char *path, const char *prefix, unsigned n_columns
}
if (last) {
}
if (last) {
- printf("%s\342\224\234 %s\n", prefix, path_get_file_name(last));
+ printf("%s%s%s\n", prefix, draw_special_char(DRAW_TREE_BRANCH),
+ path_get_file_name(last));
if (!p1) {
if (!p1) {
- p1 = strappend(prefix,
"\342\224\202 "
);
+ p1 = strappend(prefix,
draw_special_char(DRAW_TREE_VERT)
);
if (!p1) {
free(k);
r = -ENOMEM;
if (!p1) {
free(k);
r = -ENOMEM;
@@
-232,7
+234,8
@@
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);
if (last) {
show_cgroup_one_by_path(path, prefix, n_columns, !!last, kernel_threads);
if (last) {
- printf("%s\342\224\224 %s\n", prefix, path_get_file_name(last));
+ printf("%s%s%s\n", prefix, draw_special_char(DRAW_TREE_RIGHT),
+ path_get_file_name(last));
if (!p2) {
p2 = strappend(prefix, " ");
if (!p2) {
p2 = strappend(prefix, " ");