diff options
author | Sandrine Bailleux <sandrine.bailleux@arm.com> | 2021-06-17 15:44:40 +0200 |
---|---|---|
committer | Manish V Badarkhe <Manish.Badarkhe@arm.com> | 2021-10-12 17:53:47 +0100 |
commit | 9b0b34447422173a30a3980191cdd23ead983e42 (patch) | |
tree | c9e2e8f6f611759c5cc74b98cb73dd90503203ff | |
parent | 140d9cb3e7d25c856e6186bd4bc773b17e22f609 (diff) | |
download | trusted-firmware-a-9b0b34447422173a30a3980191cdd23ead983e42.tar.gz |
refactor(measured boot): rename add_event2()
To a layman in TCG linguo, add_event2() is not straight forward to
understand. Rename the function into event_log_record().
Change-Id: I75d53a656425cd78a41ebf2c4c4e4e57687adc0d
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
-rw-r--r-- | drivers/measured_boot/event_log/event_log.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/measured_boot/event_log/event_log.c b/drivers/measured_boot/event_log/event_log.c index f713595dbc..32b7c55af7 100644 --- a/drivers/measured_boot/event_log/event_log.c +++ b/drivers/measured_boot/event_log/event_log.c @@ -80,14 +80,14 @@ static const event2_header_t locality_event_header = { }; /* - * Add TCG_PCR_EVENT2 event + * Record a measurement as a TCG_PCR_EVENT2 event * * @param[in] hash Pointer to hash data of TCG_DIGEST_SIZE bytes * @param[in] image_ptr Pointer to image_data_t structure * * There must be room for storing this new event into the event log buffer. */ -static void add_event2(const uint8_t *hash, const image_data_t *image_ptr) +static void event_log_record(const uint8_t *hash, const image_data_t *image_ptr) { void *ptr = log_ptr; uint32_t name_len; @@ -222,7 +222,7 @@ void event_log_init(void) log_ptr = (uint8_t *)ptr; /* Add BL2 event */ - add_event2(NULL, plat_data_ptr->images_data); + event_log_record(NULL, plat_data_ptr->images_data); } /* @@ -264,7 +264,8 @@ int event_log_measure_and_record(uintptr_t data_base, uint32_t data_size, return rc; } - add_event2(hash_data, data_ptr); + event_log_record(hash_data, data_ptr); + return 0; } |