Remove unnecessary casts in printfs

No functional change expected :)
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2014-05-15 15:29:58 +02:00
parent 12ed81d9c8
commit de0671ee7f
64 changed files with 221 additions and 198 deletions
+3 -3
View File
@@ -2884,8 +2884,8 @@ static int check_inhibitors(sd_bus *bus, enum action a) {
get_process_comm(pid, &comm);
user = uid_to_name(uid);
log_warning("Operation inhibited by \"%s\" (PID %lu \"%s\", user %s), reason is \"%s\".",
who, (unsigned long) pid, strna(comm), strna(user), why);
log_warning("Operation inhibited by \"%s\" (PID "PID_FMT" \"%s\", user %s), reason is \"%s\".",
who, pid, strna(comm), strna(user), why);
c++;
}
@@ -4256,7 +4256,7 @@ static int get_unit_dbus_path_by_pid(
&reply,
"u", pid);
if (r < 0) {
log_error("Failed to get unit for PID %lu: %s", (unsigned long) pid, bus_error_message(&error, r));
log_error("Failed to get unit for PID "PID_FMT": %s", pid, bus_error_message(&error, r));
return r;
}