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>__archive__
parent
9f6d4d1302
commit
2eacb8fdfb
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue