summaryrefslogtreecommitdiffstats
path: root/spi25_statusreg.c
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2013-07-17 23:46:44 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2013-07-17 23:46:44 +0000
commit8fb1f65a058b29f9d55bdae6789ff8b99e179f1e (patch)
tree3b65c3cd627ff55d683f26bf0819913a3e63c5d8 /spi25_statusreg.c
parentc6dc752f7bf0d26bc857d1d1609791752af75a80 (diff)
downloadflashrom-8fb1f65a058b29f9d55bdae6789ff8b99e179f1e.zip
flashrom-8fb1f65a058b29f9d55bdae6789ff8b99e179f1e.tar.gz
Uintptr_t-ify map_flash_region functions
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: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'spi25_statusreg.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud