Skip to content

Commit

Permalink
mainboard/pcengines: fix sign-of-life coreboot build date
Browse files Browse the repository at this point in the history
The coreboot build date shown by print_sign_of_life at early boot was
incorrectly presented in yyyyddmm format, when it should have been
yyyymmdd.

pcengines/coreboot#517 contains a complete
explanation of the history of this date string.

Signed-off-by: Mark Mentovai <[email protected]>
  • Loading branch information
markmentovai authored and pietrushnic committed May 3, 2024
1 parent 61e34be commit 4785c5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mainboard/pcengines/apu2/romstage.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ static void print_sign_of_life(void)
{
char tmp[9];
strncpy(tmp, coreboot_dmi_date+6, 4);
strncpy(tmp+4, coreboot_dmi_date+3, 2);
strncpy(tmp+6, coreboot_dmi_date, 2);
strncpy(tmp+4, coreboot_dmi_date, 2);
strncpy(tmp+6, coreboot_dmi_date+3, 2);
tmp[8] = '\0';
printk(BIOS_ALERT, CONFIG_MAINBOARD_VENDOR " "
CONFIG_MAINBOARD_PART_NUMBER "\n");
Expand Down

0 comments on commit 4785c5d

Please sign in to comment.