summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-10-14 20:24:31 -0700
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-10-14 20:24:31 -0700
commita61b57a87fec48a41c7429715c477077b545d698 (patch)
tree348dbd89879f6671cb8a701ff3e27b0cdbc5d4b1 /src
parent510db585fd3996ff075539aac413eee955bf23b2 (diff)
downloadopenocd+libswd-a61b57a87fec48a41c7429715c477077b545d698.tar.gz
openocd+libswd-a61b57a87fec48a41c7429715c477077b545d698.tar.bz2
openocd+libswd-a61b57a87fec48a41c7429715c477077b545d698.tar.xz
openocd+libswd-a61b57a87fec48a41c7429715c477077b545d698.zip
another portability update
Just use "%p" instead of consing up some integral type for pointer printf. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r--src/flash/mflash.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/flash/mflash.c b/src/flash/mflash.c
index 208125ed..63ba054a 100644
--- a/src/flash/mflash.c
+++ b/src/flash/mflash.c
@@ -474,8 +474,8 @@ static int mg_mflash_read_sects(void *buff, uint32_t sect_num, uint32_t sect_cnt
residue = sect_cnt % 256;
for (i = 0; i < quotient; i++) {
- LOG_DEBUG("mflash: sect num : %" PRIu32 " buff : 0x%0lx", sect_num,
- (unsigned long)buff_ptr);
+ LOG_DEBUG("mflash: sect num : %" PRIu32 " buff : %p",
+ sect_num, buff_ptr);
ret = mg_mflash_do_read_sects(buff_ptr, sect_num, 256);
if (ret != ERROR_OK)
return ret;
@@ -485,8 +485,8 @@ static int mg_mflash_read_sects(void *buff, uint32_t sect_num, uint32_t sect_cnt
}
if (residue) {
- LOG_DEBUG("mflash: sect num : %" PRIx32 " buff : %0lx", sect_num,
- (unsigned long)buff_ptr);
+ LOG_DEBUG("mflash: sect num : %" PRIx32 " buff : %p",
+ sect_num, buff_ptr);
return mg_mflash_do_read_sects(buff_ptr, sect_num, residue);
}