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
+2 -2
View File
@@ -303,7 +303,7 @@ int machine_start(Machine *m, sd_bus_message *properties, sd_bus_error *error) {
log_struct(LOG_INFO,
MESSAGE_ID(SD_MESSAGE_MACHINE_START),
"NAME=%s", m->name,
"LEADER=%lu", (unsigned long) m->leader,
"LEADER="PID_FMT, m->leader,
"MESSAGE=New machine %s.", m->name,
NULL);
@@ -350,7 +350,7 @@ int machine_stop(Machine *m) {
log_struct(LOG_INFO,
MESSAGE_ID(SD_MESSAGE_MACHINE_STOP),
"NAME=%s", m->name,
"LEADER=%lu", (unsigned long) m->leader,
"LEADER="PID_FMT, m->leader,
"MESSAGE=Machine %s terminated.", m->name,
NULL);
+1 -1
View File
@@ -118,7 +118,7 @@ static int method_get_machine_by_pid(sd_bus *bus, sd_bus_message *message, void
if (r < 0)
return r;
if (!machine)
return sd_bus_error_setf(error, BUS_ERROR_NO_MACHINE_FOR_PID, "PID %lu does not belong to any known machine", (unsigned long) pid);
return sd_bus_error_setf(error, BUS_ERROR_NO_MACHINE_FOR_PID, "PID "PID_FMT" does not belong to any known machine", pid);
p = machine_bus_path(machine);
if (!p)
+2 -2
View File
@@ -338,7 +338,7 @@ int main(int argc, char *argv[]) {
goto finish;
}
log_debug("systemd-machined running as pid %lu", (unsigned long) getpid());
log_debug("systemd-machined running as pid "PID_FMT, getpid());
sd_notify(false,
"READY=1\n"
@@ -346,7 +346,7 @@ int main(int argc, char *argv[]) {
r = manager_run(m);
log_debug("systemd-machined stopped as pid %lu", (unsigned long) getpid());
log_debug("systemd-machined stopped as pid "PID_FMT, getpid());
finish:
sd_notify(false,