mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
log: merge conditions to reduce indentation
This commit is contained in:
parent
9e36b885b8
commit
5941112e7e
@ -387,12 +387,11 @@ static int write_to_console(
|
|||||||
iovec[n++] = IOVEC_MAKE_STRING(prefix);
|
iovec[n++] = IOVEC_MAKE_STRING(prefix);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (show_time) {
|
if (show_time &&
|
||||||
if (format_timestamp(header_time, sizeof(header_time), now(CLOCK_REALTIME))) {
|
format_timestamp(header_time, sizeof(header_time), now(CLOCK_REALTIME))) {
|
||||||
iovec[n++] = IOVEC_MAKE_STRING(header_time);
|
iovec[n++] = IOVEC_MAKE_STRING(header_time);
|
||||||
iovec[n++] = IOVEC_MAKE_STRING(" ");
|
iovec[n++] = IOVEC_MAKE_STRING(" ");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (show_tid) {
|
if (show_tid) {
|
||||||
xsprintf(tid_string, "(" PID_FMT ") ", gettid());
|
xsprintf(tid_string, "(" PID_FMT ") ", gettid());
|
||||||
|
Loading…
Reference in New Issue
Block a user