• Stefan Tauner's avatar
    Uintptr_t-ify map_flash_region functions · 305e0b99
    Stefan Tauner authored
    
    Unsigned long is not the right type for manipulating pointer values.
    Since C99 there are suitable unsigned and signed types available, namely
    uintptr_t and intptr_t respectively.
    
    Use them in functions assigned to programmers' map_flash_region fields and
    their callers where applicable.
    
    This patch also changes the display width of all associated address values in
    physmap.c to 16/8 hex characters depending on the actual size by
    introducing a macro PRIxPTR_WIDTH and exploiting printf's * field width
    specifier.
    
    Corresponding to flashrom svn r1701.
    Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
    Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
    305e0b99
programmer.c 4.18 KB