elog: Only print TYPE_BOOT on S3-resume if CONFIG_ELOG_BOOT_COUNT
commit12173feef8a92962daf61e56db89d948d27916ef
authorDaniel Kurtz <djkurtz@chromium.org>
Fri, 25 May 2018 00:22:42 +0000 (24 18:22 -0600)
committerMartin Roth <martinroth@google.com>
Fri, 25 May 2018 16:40:19 +0000 (25 16:40 +0000)
tree6491d62ea53ba6f087ec6c0a29593555ac691437
parentf55c3c2eb934464054e3b41e8dd1e0e23732ee52
elog: Only print TYPE_BOOT on S3-resume if CONFIG_ELOG_BOOT_COUNT

Previously, we were unconditionally adding a TYPE_BOOT message to the ELOG
on every boot (even S3 resume) if CONFIG_ELOG_BOOT_COUNT was disabled.
Now that boot_count_read() returns 0 for the !CONFIG_ELOG_BOOT_COUNT
case, the code becomes a bit simpler.

BUG=b:79865267
TEST=firmware_EventLog

Change-Id: I803fa4c3e03b6cc94751cf0ce34b78021ae2124e
Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-on: https://review.coreboot.org/26527
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/drivers/elog/elog.c