elog: Define constant for RW region name
This CL indroduces the ELOG_RW_REGION_NAME. This constant replaced the hardcoded "RW_ELOG" value. This constant will be used also by elogtool (see CL in the commit chain). BUG=b:172210863 Change-Id: Ie8d31204e65fd67d52b0f8ced7b8c1ffdcf5b539 Signed-off-by: Ricardo Quesada <ricardoq@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/56986 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
e929a75fbe
commit
2e0b5c4007
2 changed files with 2 additions and 1 deletions
|
@ -18,6 +18,7 @@ struct elog_header {
|
|||
/* ELOG related constants */
|
||||
#define ELOG_SIGNATURE 0x474f4c45 /* 'ELOG' */
|
||||
#define ELOG_VERSION 1
|
||||
#define ELOG_RW_REGION_NAME "RW_ELOG"
|
||||
|
||||
/* SMBIOS event log header */
|
||||
struct event_header {
|
||||
|
|
|
@ -619,7 +619,7 @@ static int elog_find_flash(void)
|
|||
elog_debug("%s()\n", __func__);
|
||||
|
||||
/* Find the ELOG base and size in FMAP */
|
||||
if (fmap_locate_area_as_rdev_rw("RW_ELOG", rdev) < 0) {
|
||||
if (fmap_locate_area_as_rdev_rw(ELOG_RW_REGION_NAME, rdev) < 0) {
|
||||
printk(BIOS_WARNING, "ELOG: Unable to find RW_ELOG in FMAP\n");
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue