basic/log: add the log_struct terminator to macro
This way all callers do not need to specify it. Exhaustively tested by running test-log under valgrind ;)
This commit is contained in:
committed by
Lennart Poettering
parent
4055a62faf
commit
a1230ff972
@@ -395,8 +395,7 @@ int machine_start(Machine *m, sd_bus_message *properties, sd_bus_error *error) {
|
||||
"MESSAGE_ID=" SD_MESSAGE_MACHINE_START_STR,
|
||||
"NAME=%s", m->name,
|
||||
"LEADER="PID_FMT, m->leader,
|
||||
LOG_MESSAGE("New machine %s.", m->name),
|
||||
NULL);
|
||||
LOG_MESSAGE("New machine %s.", m->name));
|
||||
|
||||
if (!dual_timestamp_is_set(&m->timestamp))
|
||||
dual_timestamp_get(&m->timestamp);
|
||||
@@ -458,8 +457,7 @@ int machine_finalize(Machine *m) {
|
||||
"MESSAGE_ID=" SD_MESSAGE_MACHINE_STOP_STR,
|
||||
"NAME=%s", m->name,
|
||||
"LEADER="PID_FMT, m->leader,
|
||||
LOG_MESSAGE("Machine %s terminated.", m->name),
|
||||
NULL);
|
||||
LOG_MESSAGE("Machine %s terminated.", m->name));
|
||||
|
||||
machine_unlink(m);
|
||||
machine_add_to_gc_queue(m);
|
||||
|
||||
Reference in New Issue
Block a user