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:
ac84d1f
)
core: use a bit more PID_FMT
author
Lennart Poettering
<lennart@poettering.net>
Wed, 29 Jan 2014 13:59:45 +0000
(14:59 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 29 Jan 2014 16:46:47 +0000
(17:46 +0100)
src/core/unit.c
patch
|
blob
|
history
diff --git
a/src/core/unit.c
b/src/core/unit.c
index 0ad679ba622f6154f742a9cacee2a794c1872a24..6427f9137af3085944ddbcec69fc499d22b4e8af 100644
(file)
--- a/
src/core/unit.c
+++ b/
src/core/unit.c
@@
-2938,8
+2938,7
@@
int unit_kill_context(
_cleanup_free_ char *comm = NULL;
get_process_comm(main_pid, &comm);
_cleanup_free_ char *comm = NULL;
get_process_comm(main_pid, &comm);
- log_warning_unit(u->id, "Failed to kill main process %li (%s): %s",
- (long) main_pid, strna(comm), strerror(-r));
+ log_warning_unit(u->id, "Failed to kill main process " PID_FMT " (%s): %s", main_pid, strna(comm), strerror(-r));
} else {
wait_for_exit = !main_pid_alien;
} else {
wait_for_exit = !main_pid_alien;
@@
-2955,9
+2954,7
@@
int unit_kill_context(
_cleanup_free_ char *comm = NULL;
get_process_comm(control_pid, &comm);
_cleanup_free_ char *comm = NULL;
get_process_comm(control_pid, &comm);
- log_warning_unit(u->id,
- "Failed to kill control process %li (%s): %s",
- (long) control_pid, strna(comm), strerror(-r));
+ log_warning_unit(u->id, "Failed to kill control process " PID_FMT " (%s): %s", control_pid, strna(comm), strerror(-r));
} else {
wait_for_exit = true;
} else {
wait_for_exit = true;