common/event_log.c: Format with clang-format
BRANCH=none
TEST=none
@@ -44,8 +44,8 @@ static size_t log_tail_next;
/* Size of one FIFO entry */
#define ENTRY_SIZE(payload_sz) (1 + DIV_ROUND_UP((payload_sz), UNIT_SIZE))
-void log_add_event(uint8_t type, uint8_t size, uint16_t data,
- void *payload, uint32_t timestamp)
+void log_add_event(uint8_t type, uint8_t size, uint16_t data, void *payload,
+ uint32_t timestamp)
{
struct event_log_entry *r;
size_t payload_size = EVENT_LOG_SIZE(size);
@@ -78,8 +78,8 @@ void log_add_event(uint8_t type, uint8_t size, uint16_t data,
r->size = size;
r->data = data;
/* copy the payload into the FIFO */
- first = MIN(total_size - 1, (UNIT_COUNT -
- (current_tail & UNIT_COUNT_MASK)) - 1);
+ first = MIN(total_size - 1,
+ (UNIT_COUNT - (current_tail & UNIT_COUNT_MASK)) - 1);
if (first)
memcpy(r->payload, payload, first * UNIT_SIZE);
if (first < total_size - 1)
@@ -179,8 +179,6 @@ static int command_dlog(int argc, char **argv)
}
return EC_SUCCESS;
}
-DECLARE_CONSOLE_COMMAND(dlog,
- command_dlog,
- "[clear]",
+DECLARE_CONSOLE_COMMAND(dlog, command_dlog, "[clear]",
"Display/clear TPM event logs");
#endif
