diff options
author | Freddie Chopin <freddie_chopin@op.pl> | 2009-12-28 21:08:48 +0100 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2009-12-28 13:09:31 -0800 |
commit | 6b1eeb92fe603c2a3d8d04f299aa1318d2ad4b36 (patch) | |
tree | 1242bbc17cfa77b442bc4672b5f382faa31c9af1 /src/target | |
parent | 37cc6c495f0b5fd2257aecdbde111ddfb6d8b083 (diff) | |
download | openocd_libswd-6b1eeb92fe603c2a3d8d04f299aa1318d2ad4b36.tar.gz openocd_libswd-6b1eeb92fe603c2a3d8d04f299aa1318d2ad4b36.tar.bz2 openocd_libswd-6b1eeb92fe603c2a3d8d04f299aa1318d2ad4b36.tar.xz openocd_libswd-6b1eeb92fe603c2a3d8d04f299aa1318d2ad4b36.zip |
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/target')
-rw-r--r-- | src/target/target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/target.c b/src/target/target.c index ebddbba8..8cb53b36 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -2488,7 +2488,7 @@ COMMAND_HANDLER(handle_dump_image_command) if ((ERROR_OK == retval) && (duration_measure(&bench) == ERROR_OK)) { command_print(CMD_CTX, - "dumped %zu bytes in %fs (%0.3f kb/s)", fileio.size, + "dumped %ld bytes in %fs (%0.3f kb/s)", (long)fileio.size, duration_elapsed(&bench), duration_kbps(&bench, fileio.size)); } |