aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJens Bauer <jens@gpio.dk>2014-10-28 05:14:05 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2015-01-09 08:42:15 +0000
commit2eacb8fdfb4ea761acc3a3fbb51d048fefccd9b6 (patch)
treed757c9b3c2a0c7b40784aae920a128ae3ba42800 /src
parent9f6d4d1302e778a4f57033f3d86c757718f2ca9f (diff)
Mac/PPC: Fix build.
GCC-4.2 on Mac/PPC complains about size_t is expected for %zx and the build stops. In order to avoid other problems, I've chosen simply to typecast. Change-Id: I99b569c4d1100e729712e31d24d6539f8b5971b6 Signed-off-by: Jens Bauer <jens@gpio.dk> Reviewed-on: http://openocd.zylin.com/2360 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/target/target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/target.c b/src/target/target.c
index b74c6a0c..6f458bce 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -906,7 +906,7 @@ int target_run_flash_async_algorithm(struct target *target,
}
LOG_DEBUG("offs 0x%zx count 0x%" PRIx32 " wp 0x%" PRIx32 " rp 0x%" PRIx32,
- (buffer - buffer_orig), count, wp, rp);
+ (size_t) (buffer - buffer_orig), count, wp, rp);
if (rp == 0) {
LOG_ERROR("flash write algorithm aborted by target");