Assorted format fixes

Types used for pids and uids in various interfaces are unpredictable.
Too bad.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2015-01-22 01:14:52 -05:00
parent 8facc3498e
commit 1fa2f38f0f
37 changed files with 93 additions and 92 deletions
+2 -2
View File
@@ -3399,7 +3399,7 @@ static void print_status_info(
continue;
argv = strv_join(p->argv, " ");
printf(" Process: %u %s=%s ", p->pid, p->name, strna(argv));
printf(" Process: "PID_FMT" %s=%s ", p->pid, p->name, strna(argv));
good = is_clean_exit_lsb(p->code, p->status, NULL);
if (!good) {
@@ -4292,7 +4292,7 @@ static int get_unit_dbus_path_by_pid(
&reply,
"u", pid);
if (r < 0) {
log_error("Failed to get unit for PID "PID_FMT": %s", pid, bus_error_message(&error, r));
log_error("Failed to get unit for PID %"PRIu32": %s", pid, bus_error_message(&error, r));
return r;
}