coreboot/src/commonlib/bsd
Ricardo Quesada 425fdeb2f9 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>
2021-09-23 06:26:19 +00:00
..
include/commonlib/bsd elog: calculate year correctly in timestamp 2021-09-23 06:26:19 +00:00
cbfs_mcache.c cbfs: mcache: Fix size calculation for perfectly full cache 2021-04-10 00:00:34 +00:00
cbfs_private.c commonlib/cbfs: Fix minor parser edge cases 2021-09-15 01:19:22 +00:00
elog.c elog: calculate year correctly in timestamp 2021-09-23 06:26:19 +00:00
lz4.c.inc
lz4_wrapper.c commonlib/lz4_wrapper.c: do not use bitfields 2021-06-11 07:41:41 +00:00