aboutsummaryrefslogtreecommitdiff
path: root/src/flash/mflash.c
diff options
context:
space:
mode:
authorFreddie Chopin <freddie_chopin@op.pl>2009-12-28 21:08:48 +0100
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-12-28 13:09:31 -0800
commit6b1eeb92fe603c2a3d8d04f299aa1318d2ad4b36 (patch)
tree1242bbc17cfa77b442bc4672b5f382faa31c9af1 /src/flash/mflash.c
parent37cc6c495f0b5fd2257aecdbde111ddfb6d8b083 (diff)
downloadriscv-openocd-6b1eeb92fe603c2a3d8d04f299aa1318d2ad4b36.zip
riscv-openocd-6b1eeb92fe603c2a3d8d04f299aa1318d2ad4b36.tar.gz
riscv-openocd-6b1eeb92fe603c2a3d8d04f299aa1318d2ad4b36.tar.bz2
MinGW build fixes
Print "ssize_t" as "%ld" (+ cast to long) not as "%zu". Official MinGW (gcc 3.4.5) doesn't understand "z" flag. Signed-off-by: Freddie Chopin <freddie_chopin@op.pl> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/flash/mflash.c')
-rw-r--r--src/flash/mflash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/mflash.c b/src/flash/mflash.c
index 5c8ca8c..04f5c77 100644
--- a/src/flash/mflash.c
+++ b/src/flash/mflash.c
@@ -751,8 +751,8 @@ COMMAND_HANDLER(mg_write_cmd)
if (duration_measure(&bench) == ERROR_OK)
{
- command_print(CMD_CTX, "wrote %zu byte from file %s "
- "in %fs (%0.3f kB/s)", fileio.size, CMD_ARGV[1],
+ command_print(CMD_CTX, "wrote %ld bytes from file %s "
+ "in %fs (%0.3f kB/s)", (long)fileio.size, CMD_ARGV[1],
duration_elapsed(&bench), duration_kbps(&bench, fileio.size));
}