diff options
author | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2013-07-13 23:31:37 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2013-07-13 23:31:37 +0000 |
commit | c2333751c411b5265326d866f810017cd561643c (patch) | |
tree | 574e4a82e15854b6bc4393c5f56005fe2b4bda9c /serprog.c | |
parent | 11990da1d3a4ca913ed5b85888a37188c4a621db (diff) | |
download | flashrom-c2333751c411b5265326d866f810017cd561643c.tar.gz flashrom-c2333751c411b5265326d866f810017cd561643c.tar.bz2 flashrom-c2333751c411b5265326d866f810017cd561643c.zip |
Use uintptr_t for chipaddr instead of unsigned long
Corresponding to flashrom svn r1698.
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 'serprog.c')
-rw-r--r-- | serprog.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -789,7 +789,7 @@ static uint8_t serprog_chip_readb(const struct flashctx *flash, sp_flush_stream(); if (serialport_read(&c, 1) != 0) sp_die("readb byteread"); - msg_pspew("%s addr=0x%lx returning 0x%02X\n", __func__, addr, c); + msg_pspew("%s addr=0x%" PRIxPTR " returning 0x%02X\n", __func__, addr, c); return c; } @@ -797,7 +797,7 @@ static uint8_t serprog_chip_readb(const struct flashctx *flash, static void sp_do_read_n(uint8_t * buf, const chipaddr addr, size_t len) { unsigned char sbuf[6]; - msg_pspew("%s: addr=0x%lx len=%lu\n", __func__, addr, (unsigned long)len); + msg_pspew("%s: addr=0x%" PRIxPTR " len=%lu\n", __func__, addr, (unsigned long)len); /* Stream the read-n -- as above. */ if ((sp_opbuf_usage) || (sp_max_write_n && sp_write_n_bytes)) sp_execute_opbuf_noflush(); |