diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-06-04 12:59:22 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-06-04 13:46:03 +0200 |
commit | a1230ff972a6a5d945749e5280cd092a2aa827dd (patch) | |
tree | f6e7280a3e2162132c1b2df8cfc530105b8e431d /src/timedate/timedated.c | |
parent | 4055a62faffc1ad6318265a674b3eb026ebdf78b (diff) | |
download | systemd-a1230ff972a6a5d945749e5280cd092a2aa827dd.tar.gz |
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 ;)
Diffstat (limited to 'src/timedate/timedated.c')
-rw-r--r-- | src/timedate/timedated.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c index d504f7c6f9..175513321f 100644 --- a/src/timedate/timedated.c +++ b/src/timedate/timedated.c @@ -578,8 +578,7 @@ static int method_set_timezone(sd_bus_message *m, void *userdata, sd_bus_error * "TIMEZONE=%s", c->zone, "TIMEZONE_SHORTNAME=%s", tzname[daylight], "DAYLIGHT=%i", daylight, - LOG_MESSAGE("Changed time zone to '%s' (%s).", c->zone, tzname[daylight]), - NULL); + LOG_MESSAGE("Changed time zone to '%s' (%s).", c->zone, tzname[daylight])); (void) sd_bus_emit_properties_changed(sd_bus_message_get_bus(m), "/org/freedesktop/timedate1", "org.freedesktop.timedate1", "Timezone", NULL); @@ -765,8 +764,7 @@ static int method_set_time(sd_bus_message *m, void *userdata, sd_bus_error *erro log_struct(LOG_INFO, "MESSAGE_ID=" SD_MESSAGE_TIME_CHANGE_STR, "REALTIME="USEC_FMT, timespec_load(&ts), - LOG_MESSAGE("Changed local time to %s", ctime(&ts.tv_sec)), - NULL); + LOG_MESSAGE("Changed local time to %s", ctime(&ts.tv_sec))); return sd_bus_reply_method_return(m, NULL); } |