diff options
-rw-r--r-- | src/commonlib/bsd/include/commonlib/bsd/elog.h | 1 | ||||
-rw-r--r-- | src/drivers/elog/elog.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/commonlib/bsd/include/commonlib/bsd/elog.h b/src/commonlib/bsd/include/commonlib/bsd/elog.h index 2ac15f0a4f..d428b5d4d6 100644 --- a/src/commonlib/bsd/include/commonlib/bsd/elog.h +++ b/src/commonlib/bsd/include/commonlib/bsd/elog.h @@ -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 { diff --git a/src/drivers/elog/elog.c b/src/drivers/elog/elog.c index 4b51504d6a..69567c0f4d 100644 --- a/src/drivers/elog/elog.c +++ b/src/drivers/elog/elog.c @@ -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; } |