Write to the log @param lock whether the caller did not acquire lock_operations */
| 1176 | @param lock whether the caller did not acquire lock_operations |
| 1177 | */ |
| 1178 | static int write_log_maybe_lock(const char *message, size_t len, bool lock, time_t ts) |
| 1179 | { |
| 1180 | if (unlikely(!lock)) |
| 1181 | return write_log(message, len, ts); |
| 1182 | else |
| 1183 | return write_log_and_lock(message, len, ts); |
| 1184 | } |
| 1185 | |
| 1186 | |
| 1187 | static size_t log_header(char *message, size_t message_len, |
no test coverage detected