diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-06-04 12:59:22 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-08-24 16:47:08 +0200 |
commit | 74102fa68ea25cd7e8914f112f357760130728fb (patch) | |
tree | d07112608de6fb911e0cdde0dbcc9cc28f081e8e /src/login/logind-seat.c | |
parent | 2ec9aee55b39af874d9582d3884c02f43d6c98fe (diff) |
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/login/logind-seat.c')
-rw-r--r-- | src/login/logind-seat.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/login/logind-seat.c b/src/login/logind-seat.c index 67791bef1..233812fe8 100644 --- a/src/login/logind-seat.c +++ b/src/login/logind-seat.c @@ -411,8 +411,7 @@ int seat_start(Seat *s) { log_struct(LOG_INFO, "MESSAGE_ID=" SD_MESSAGE_SEAT_START_STR, "SEAT_ID=%s", s->id, - LOG_MESSAGE("New seat %s.", s->id), - NULL); + LOG_MESSAGE("New seat %s.", s->id)); /* Initialize VT magic stuff */ #if 0 /// elogind does not support autospawning vts @@ -441,8 +440,7 @@ int seat_stop(Seat *s, bool force) { log_struct(LOG_INFO, "MESSAGE_ID=" SD_MESSAGE_SEAT_STOP_STR, "SEAT_ID=%s", s->id, - LOG_MESSAGE("Removed seat %s.", s->id), - NULL); + LOG_MESSAGE("Removed seat %s.", s->id)); seat_stop_sessions(s, force); |