Author: stefanct Date: Fri Sep 13 19:21:05 2013 New Revision: 1743 URL: http://flashrom.org/trac/flashrom/changeset/1743
Log: 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.
Signed-off-by: Stefan Tauner stefan.tauner@student.tuwien.ac.at Acked-by: Stefan Tauner stefan.tauner@student.tuwien.ac.at
Modified: trunk/flashrom.c
Modified: trunk/flashrom.c ============================================================================== --- trunk/flashrom.c Thu Sep 12 17:48:39 2013 (r1742) +++ trunk/flashrom.c Fri Sep 13 19:21:05 2013 (r1743) @@ -432,8 +432,10 @@
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)