mb/qemu/fw_cfg: Add info messages about (not) found files

Print some more information at BIOS_INFO, like our CBFS code does.

Change-Id: I1431d569c57634277ea5cf7feb352419db432b44
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43444
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Nico Huber 2020-07-14 12:19:07 +02:00 committed by Nico Huber
parent 0115ba8835
commit ef59c93f77
1 changed files with 2 additions and 0 deletions

View File

@ -74,9 +74,11 @@ static int fw_cfg_find_file(FWCfgFile *file, const char *name)
if (strcmp(file->name, name) == 0) { if (strcmp(file->name, name) == 0) {
file->size = be32_to_cpu(file->size); file->size = be32_to_cpu(file->size);
file->select = be16_to_cpu(file->select); file->select = be16_to_cpu(file->select);
printk(BIOS_INFO, "QEMU: firmware config: Found '%s'\n", name);
return 0; return 0;
} }
} }
printk(BIOS_INFO, "QEMU: firmware config: Couldn't find '%s'\n", name);
return -1; return -1;
} }