summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-01-29 14:59:45 +0100
committerLennart Poettering <lennart@poettering.net>2014-01-29 17:46:47 +0100
commit6294b8a92db8579210d4fc9ce74097a15005b3e6 (patch)
treefea15cf1354beaef1185627fd9a29e0944f2b0eb
parentac84d1fb5a7293df4f75544eedf148ba0bb4ec21 (diff)
core: use a bit more PID_FMT
-rw-r--r--src/core/unit.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/unit.c b/src/core/unit.c
index 0ad679ba62..6427f9137a 100644
--- 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);
- 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;
@@ -2955,9 +2954,7 @@ int unit_kill_context(
_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;