mb/ocp/deltalake: Replace space with underscore in Locator string

Per Facebook BIOS requirements 'Locator' field should not
have any space between words.

Tested=On OCP Delta Lake, dmidecode -t 17 to verify.

Change-Id: I2f6f1b2590c55d6da4ca32aef2f50eb332f441dc
Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49895
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jonathan Zhang <jonzhang@fb.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Johnny Lin 2021-01-25 15:45:06 +08:00 committed by Patrick Georgi
parent 1f7a39eaf6
commit 38cb7c1615
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ void smbios_fill_dimm_locator(const struct dimm_info *dimm, struct smbios_type17
{
char buf[40];
snprintf(buf, sizeof(buf), "DIMM %c0", 'A' + dimm->channel_num);
snprintf(buf, sizeof(buf), "DIMM_%c0", 'A' + dimm->channel_num);
t->device_locator = smbios_add_string(t->eos, buf);
snprintf(buf, sizeof(buf), "_Node0_Channel%d_Dimm0", dimm->channel_num);