aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ec/starlabs/merlin/ite.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ec/starlabs/merlin/ite.c b/src/ec/starlabs/merlin/ite.c
index 0f807debf8..62210ad863 100644
--- a/src/ec/starlabs/merlin/ite.c
+++ b/src/ec/starlabs/merlin/ite.c
@@ -79,10 +79,13 @@ void ec_mirror_flag(void)
* that have CCG6, present on devices with TBT, but have a manual
* flag for devices without it.
*/
+ uint16_t ec_version = ec_get_version();
+
if (CONFIG(EC_STARLABS_MIRROR_SUPPORT) &&
(CONFIG(SOC_INTEL_COMMON_BLOCK_TCSS) || get_uint_option("mirror_flag", 0)) &&
- (ec_get_version() != CONFIG_EC_STARLABS_MIRROR_VERSION)) {
- printk(BIOS_ERR, "ITE: System and EC ROM version mismatch.\n");
+ (ec_version != CONFIG_EC_STARLABS_MIRROR_VERSION)) {
+ printk(BIOS_ERR, "ITE: EC version 0x%x doesn't match coreboot version 0x%x.\n",
+ ec_version, CONFIG_EC_STARLABS_MIRROR_VERSION);
ec_mirror_with_count();
}
}