diff options
author | Ricardo Quesada <ricardoq@google.com> | 2021-09-21 13:55:53 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-09-23 06:26:19 +0000 |
commit | 425fdeb2f9e530ff3670a68a25a668bb47d66dde (patch) | |
tree | 97ebb2b9ee28dd750ba8897e75d1628b5ced2d7a /src/mainboard/google/reef/Kconfig | |
parent | 10f2faacea0739e0fa84837cf8b79dbb9e0ec8e4 (diff) |
elog: calculate year correctly in timestamp
This CL uses a 16-bit value (instead of an 8-bit value) for the year.
This is needed because the function internally does a "year % 100", so
the year should not be truncated to 8-bit before applying the modulo.
This fixes a regression introduced in commit e929a75.
BUG=b:200538760
TEST=deployed coreboot. Manually verified that year is correct using
"elogtool list"
TEST=test_that -b $BOARD $DUT firmware_EventLog
Change-Id: I17578ff99af5b31b216ac53c22e53b1b70df5084
Signed-off-by: Ricardo Quesada <ricardoq@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57816
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/google/reef/Kconfig')
0 files changed, 0 insertions, 0 deletions