mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:04:43 +01:00
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>
This commit is contained in:
parent
0af2f6be1b
commit
e1288f1db6
1 changed files with 2 additions and 1 deletions
|
|
@ -43,7 +43,8 @@ int __init __efi_memmap_init(struct efi_memory_map_data *data)
|
|||
map.map = early_memremap(phys_map, data->size);
|
||||
|
||||
if (!map.map) {
|
||||
pr_err("Could not map the memory map!\n");
|
||||
pr_err("Could not map the memory map! phys_map=%pa, size=0x%lx\n",
|
||||
&phys_map, data->size);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue