log: merge conditions to reduce indentation
This commit is contained in:
parent
9e36b885b8
commit
5941112e7e
|
@ -387,11 +387,10 @@ 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) {
|
||||||
|
|
Loading…
Reference in a new issue