From 29fa5fe6e0c9e98bd74dc812a93cb45942a7b4a3 Mon Sep 17 00:00:00 2001 From: Nicolas Kochlowski Date: Tue, 31 Dec 2024 13:37:34 -0300 Subject: [PATCH] vendorcode/amd/opensil/genoa_poc/ramstage.c: Fix log typos Fix the typo in the word "unknown", and add 1 to the timepoint enum to print out 1, 2 and 3 instead of 0, 1 and 2. Change-Id: I1308fd102490a89ff8b724509917180034d8d0c0 Signed-off-by: Nicolas Kochlowski Reviewed-on: https://review.coreboot.org/c/coreboot/+/85819 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/vendorcode/amd/opensil/genoa_poc/ramstage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vendorcode/amd/opensil/genoa_poc/ramstage.c b/src/vendorcode/amd/opensil/genoa_poc/ramstage.c index b1bbc07a7d..bb3cad1c06 100644 --- a/src/vendorcode/amd/opensil/genoa_poc/ramstage.c +++ b/src/vendorcode/amd/opensil/genoa_poc/ramstage.c @@ -18,7 +18,7 @@ void SIL_STATUS_report(const char *function, const int status) { const int log_level = status == SilPass ? BIOS_DEBUG : BIOS_ERR; - const char *error_string = "Unkown error"; + const char *error_string = "Unknown error"; const struct error_string_entry { SIL_STATUS status; @@ -151,7 +151,7 @@ static void opensil_entry(SIL_TIMEPOINT timepoint) return; } char opensil_function[16]; - snprintf(opensil_function, sizeof(opensil_function), "InitializeSiTp%d", tp); + snprintf(opensil_function, sizeof(opensil_function), "InitializeSiTp%d", tp + 1); SIL_STATUS_report(opensil_function, ret); if (ret == SilResetRequestColdImm || ret == SilResetRequestColdDef) { printk(BIOS_INFO, "openSIL requested a cold reset");