chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
455d8dc
)
systemctl: minor cosmetic fixes
author
Lennart Poettering
<lennart@poettering.net>
Wed, 7 Jul 2010 00:11:14 +0000
(
02:11
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 7 Jul 2010 00:21:41 +0000
(
02:21
+0200)
src/systemctl.c
patch
|
blob
|
history
diff --git
a/src/systemctl.c
b/src/systemctl.c
index 02c8e30418b6e49b312b6e5b8baa6d6be705d163..5c91c325cd2d5ae8b5012248dbb163f35ad7f117 100644
(file)
--- a/
src/systemctl.c
+++ b/
src/systemctl.c
@@
-242,7
+242,7
@@
static int list_units(DBusConnection *bus, char **args, unsigned n) {
if (job_id != 0)
printf(" %-15s%n", job_type, &b);
else
if (job_id != 0)
printf(" %-15s%n", job_type, &b);
else
- b = 1 + 1
5
;
+ b = 1 + 1
6
;
if (a + b + 2 < columns()) {
if (job_id == 0)
if (a + b + 2 < columns()) {
if (job_id == 0)
@@
-952,8
+952,6
@@
static void show_cgroup(const char *name) {
if (!f)
return;
if (!f)
return;
- printf("\t\t \342\224\202\n");
-
while (!feof(f)) {
unsigned long ul;
while (!feof(f)) {
unsigned long ul;
@@
-968,7
+966,8
@@
static void show_cgroup(const char *name) {
get_process_cmdline(last, 60, &t);
printf("\t\t \342\224\234 %lu %s\n", (unsigned long) last, strna(t));
free(t);
get_process_cmdline(last, 60, &t);
printf("\t\t \342\224\234 %lu %s\n", (unsigned long) last, strna(t));
free(t);
- }
+ } else
+ printf("\t\t \342\224\202\n");
last = (pid_t) ul;
}
last = (pid_t) ul;
}