Skip to content

Commit e1288f1

Browse files
Bartosz Szczepanekardbiesheuvel
authored andcommitted
efi: Improve logging around memmap init
Be more informative if memremap fails, and print out physical address together with size. This change intends to make investigations of such early failures slightly easier. Signed-off-by: Bartosz Szczepanek <bsz@amazon.de> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
1 parent 0af2f6b commit e1288f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/firmware/efi/memmap.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ int __init __efi_memmap_init(struct efi_memory_map_data *data)
4343
map.map = early_memremap(phys_map, data->size);
4444

4545
if (!map.map) {
46-
pr_err("Could not map the memory map!\n");
46+
pr_err("Could not map the memory map! phys_map=%pa, size=0x%lx\n",
47+
&phys_map, data->size);
4748
return -ENOMEM;
4849
}
4950

0 commit comments

Comments
 (0)