1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-26 22:52:34 +02:00

Add debug output to programmer_map_flash_region()

While we don't expect addresses with more than 32 bits here, let's
print the whole possible range for debugging anyway.

Corresponding to flashrom svn r1743.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
This commit is contained in:
Stefan Tauner 2013-09-13 17:21:05 +00:00
parent c65b8555d5
commit 26e7a154a8

View File

@ -432,8 +432,10 @@ int programmer_shutdown(void)
void *programmer_map_flash_region(const char *descr, uintptr_t phys_addr, size_t len)
{
return programmer_table[programmer].map_flash_region(descr,
phys_addr, len);
void *ret = programmer_table[programmer].map_flash_region(descr, phys_addr, len);
msg_gspew("%s: mapping %s from 0x%0*" PRIxPTR " to 0x%0*" PRIxPTR "\n",
__func__, descr, PRIxPTR_WIDTH, phys_addr, PRIxPTR_WIDTH, (uintptr_t) ret);
return ret;
}
void programmer_unmap_flash_region(void *virt_addr, size_t len)