aboutsummaryrefslogtreecommitdiff
path: root/src/flash/flash.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 14:22:21 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-16 15:47:09 -0800
commit69df712d1d06b2c698bed3de086b9f734de73b7e (patch)
tree9defb053b7bce774beb5ebac30bae757b0dd5ba8 /src/flash/flash.c
parent9763aef76a42fdaedcec9825fdf502f8cb7dd628 (diff)
downloadriscv-openocd-69df712d1d06b2c698bed3de086b9f734de73b7e.zip
riscv-openocd-69df712d1d06b2c698bed3de086b9f734de73b7e.tar.gz
riscv-openocd-69df712d1d06b2c698bed3de086b9f734de73b7e.tar.bz2
struct fileio: improve member types
Add const keyword to file url and cast to free(). Make size an ssize_t and chase all format strings that use it.
Diffstat (limited to 'src/flash/flash.c')
-rw-r--r--src/flash/flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/flash.c b/src/flash/flash.c
index bdee53b..03d4547 100644
--- a/src/flash/flash.c
+++ b/src/flash/flash.c
@@ -847,7 +847,7 @@ COMMAND_HANDLER(handle_flash_write_bank_command)
if ((ERROR_OK == retval) && (duration_measure(&bench) == ERROR_OK))
{
- command_print(cmd_ctx, "wrote %lld byte from file %s to flash bank %u"
+ command_print(cmd_ctx, "wrote %zu byte from file %s to flash bank %u"
" at offset 0x%8.8" PRIx32 " in %fs (%0.3f kb/s)",
fileio.size, args[1], p->bank_number, offset,
duration_elapsed(&bench), duration_kbps(&bench, fileio.size));