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>
                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;
        }